Fix NamingPatternCodeFinder to detect final classes
diff --git a/libcore/tools/runner/java/dalvik/runner/NamingPatternCodeFinder.java b/libcore/tools/runner/java/dalvik/runner/NamingPatternCodeFinder.java
index 60fe0bf..19c9df2 100644
--- a/libcore/tools/runner/java/dalvik/runner/NamingPatternCodeFinder.java
+++ b/libcore/tools/runner/java/dalvik/runner/NamingPatternCodeFinder.java
@@ -32,7 +32,7 @@
     private final String PACKAGE_PATTERN = "(?m)^\\s*package\\s+(\\S+)\\s*;";
 
     private final String TYPE_DECLARATION_PATTERN
-            = "(?m)\\b(?:public|private)\\s+(?:interface|class|enum)\\b";
+            = "(?m)\\b(?:public|private)\\s+(?:final\\s+)?(?:interface|class|enum)\\b";
 
     public Set<TestRun> findTests(File testDirectory) {
         Set<TestRun> result = new LinkedHashSet<TestRun>();