| # scans .java files in src/main/java for |
| # UnsupportedOperationExceptions and prints |
| # a summary to standard output. |
| for file in glob(dir + "/*"): |
| result += rglob(file, pattern) |
| elif re.match(pattern, file): |
| for file in rglob("src/main/java", ".+\\.java"): |
| cfile = file[len("src/main/java/net/glowstone/"):len(file)-5].replace("/", ".").replace("\\", ".") |
| if re.match(" *public", line): |
| if line.find("UnsupportedOperationException") >= 0: |
| print cfile + ": " + function |
| if line.strip() != 'throw new UnsupportedOperationException("Not supported yet.");': |
| print " " + line.strip()[len('throw new UnsupportedOperationException'):] |