| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -426,15 +426,14 @@ private boolean lookup_com(final String keyword) { | |||
| 426 | 426 | /** | |
| 427 | 427 | * Takes all whitespace off the end of its argument. | |
| 428 | 428 | */ | |
| 429 | - private void trimRight(final StringBuilder sb) { | ||
| 430 | - while (sb.length() >= 1 && Character.isWhitespace(sb.charAt(sb.length() - 1))) | ||
| 429 | + static private void trimRight(final StringBuilder sb) { | ||
| 430 | + while (sb.length() >= 1 && Character.isWhitespace(sb.charAt(sb.length() - 1))) { | ||
| 431 | 431 | sb.setLength(sb.length() - 1); | |
| 432 | + } | ||
| 432 | 433 | } | |
| 433 | 434 | ||
| 434 | 435 | ||
| 435 | - /** | ||
| 436 | - * Entry point | ||
| 437 | - */ | ||
| 436 | + /** Entry point */ | ||
| 438 | 437 | public String format(final String source) { | |
| 439 | 438 | final String normalizedText = source.replaceAll("\r", ""); | |
| 440 | 439 | final String cleanText = | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -355,7 +355,7 @@ public Object getValueFor(Object obj, int column) { | |||
| 355 | 355 | } | |
| 356 | 356 | ||
| 357 | 357 | @Override | |
| 358 | - public Class getColumnClass(int column) { | ||
| 358 | + public Class<?> getColumnClass(int column) { | ||
| 359 | 359 | if (column == 0) { | |
| 360 | 360 | return VariableNode.class; | |
| 361 | 361 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1381,12 +1381,12 @@ protected void stopTrackingLineChanges() { | |||
| 1381 | 1381 | } | |
| 1382 | 1382 | ||
| 1383 | 1383 | ||
| 1384 | - private void log(Level level, String msg) { | ||
| 1384 | + static private void log(Level level, String msg) { | ||
| 1385 | 1385 | Logger.getLogger(Debugger.class.getName()).log(level, msg); | |
| 1386 | 1386 | } | |
| 1387 | 1387 | ||
| 1388 | 1388 | ||
| 1389 | - private void log(Level level, String msg, Object obj) { | ||
| 1389 | + static private void log(Level level, String msg, Object obj) { | ||
| 1390 | 1390 | Logger.getLogger(Debugger.class.getName()).log(level, msg, obj); | |
| 1391 | 1391 | } | |
| 1392 | 1392 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2553,7 +2553,7 @@ public void updateInterface(List<List<Handle>> handles, | |||
| 2553 | 2553 | } | |
| 2554 | 2554 | ||
| 2555 | 2555 | ||
| 2556 | - private boolean[] getModifiedTabs(List<List<Handle>> handles) { | ||
| 2556 | + static private boolean[] getModifiedTabs(List<List<Handle>> handles) { | ||
| 2557 | 2557 | boolean[] modifiedTabs = new boolean[handles.size()]; | |
| 2558 | 2558 | ||
| 2559 | 2559 | for (int i = 0; i < handles.size(); i++) { | |
@@ -2785,13 +2785,13 @@ public boolean automateSketch(Sketch sketch, List<List<Handle>> handles) { | |||
| 2785 | 2785 | } | |
| 2786 | 2786 | ||
| 2787 | 2787 | ||
| 2788 | - private String replaceString(String str, int start, int end, String put) { | ||
| 2788 | + static private String replaceString(String str, int start, int end, String put) { | ||
| 2789 | 2789 | return str.substring(0, start) + put + str.substring(end, str.length()); | |
| 2790 | 2790 | } | |
| 2791 | 2791 | ||
| 2792 | 2792 | ||
| 2793 | 2793 | //private int howManyInts(ArrayList<Handle> handles[]) | |
| 2794 | - private int howManyInts(List<List<Handle>> handles) { | ||
| 2794 | + static private int howManyInts(List<List<Handle>> handles) { | ||
| 2795 | 2795 | int count = 0; | |
| 2796 | 2796 | //for (int i=0; i<handles.length; i++) { | |
| 2797 | 2797 | for (List<Handle> list : handles) { | |
@@ -2807,7 +2807,7 @@ private int howManyInts(List<List<Handle>> handles) { | |||
| 2807 | 2807 | ||
| 2808 | 2808 | ||
| 2809 | 2809 | //private int howManyFloats(ArrayList<Handle> handles[]) | |
| 2810 | - private int howManyFloats(List<List<Handle>> handles) { | ||
| 2810 | + static private int howManyFloats(List<List<Handle>> handles) { | ||
| 2811 | 2811 | int count = 0; | |
| 2812 | 2812 | //for (int i=0; i<handles.length; i++) { | |
| 2813 | 2813 | for (List<Handle> list : handles) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -208,7 +208,7 @@ public void run() { | |||
| 208 | 208 | ||
| 209 | 209 | ||
| 210 | 210 | // TODO Why is this necessary? Why isn't Sketch.isModified() used? | |
| 211 | - private boolean isSketchModified(Sketch sketch) { | ||
| 211 | + static private boolean isSketchModified(Sketch sketch) { | ||
| 212 | 212 | for (SketchCode sc : sketch.getCode()) { | |
| 213 | 213 | if (sc.isModified()) { | |
| 214 | 214 | return true; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -234,7 +234,7 @@ public boolean isLeaf() { | |||
| 234 | 234 | } | |
| 235 | 235 | ||
| 236 | 236 | @Override | |
| 237 | - public Enumeration children() { | ||
| 237 | + public Enumeration<MutableTreeNode> children() { | ||
| 238 | 238 | return Collections.enumeration(children); | |
| 239 | 239 | } | |
| 240 | 240 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1449,7 +1449,7 @@ public ClassMember definedIn3rdPartyClass(ClassMember tehClass,String memberName | |||
| 1449 | 1449 | } | |
| 1450 | 1450 | } | |
| 1451 | 1451 | ||
| 1452 | - Class probableClass = null; | ||
| 1452 | + Class<?> probableClass = null; | ||
| 1453 | 1453 | if (tehClass.getClass_() != null) { | |
| 1454 | 1454 | probableClass = tehClass.getClass_(); | |
| 1455 | 1455 | } else { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -370,10 +370,10 @@ private void compileMeQuitely(ICompilationUnit unit, Map<String, String> compile | |||
| 370 | 370 | .getDefault())); | |
| 371 | 371 | compiler.compile(new ICompilationUnit[] { unit }); | |
| 372 | 372 | ||
| 373 | - List problems = requestor.getProblems(); | ||
| 373 | + List<IProblem> problems = requestor.getProblems(); | ||
| 374 | 374 | prob = new IProblem[problems.size()]; | |
| 375 | 375 | int count = 0; | |
| 376 | - for (Iterator it = problems.iterator(); it.hasNext();) { | ||
| 376 | + for (Iterator<IProblem> it = problems.iterator(); it.hasNext();) { | ||
| 377 | 377 | IProblem problem = (IProblem) it.next(); | |
| 378 | 378 | prob[count++] = problem; | |
| 379 | 379 | } | |
@@ -479,7 +479,6 @@ public IProblem[] getErrors(String sourceName, String source) { | |||
| 479 | 479 | } | |
| 480 | 480 | ||
| 481 | 481 | ||
| 482 | - @SuppressWarnings("rawtypes") | ||
| 483 | 482 | public IProblem[] getErrors(String sourceName, String source, Map<String, String> settings) { | |
| 484 | 483 | fileName = sourceName; | |
| 485 | 484 | sourceText = "package " + fileName + ";\n" + source; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -183,7 +183,7 @@ protected JButton createIncreaseButton(int orientation) { | |||
| 183 | 183 | return createZeroButton(); | |
| 184 | 184 | } | |
| 185 | 185 | ||
| 186 | - private JButton createZeroButton() { | ||
| 186 | + static private JButton createZeroButton() { | ||
| 187 | 187 | JButton jbutton = new JButton(); | |
| 188 | 188 | jbutton.setPreferredSize(new Dimension(0, 0)); | |
| 189 | 189 | jbutton.setMinimumSize(new Dimension(0, 0)); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -967,14 +967,13 @@ protected boolean ignorableImport(String packageName) { | |||
| 967 | 967 | /** | |
| 968 | 968 | * Various option for JDT Compiler | |
| 969 | 969 | */ | |
| 970 | - protected Map compilerSettings; | ||
| 970 | + protected Map<String, String> compilerSettings; | ||
| 971 | 971 | ||
| 972 | 972 | /** | |
| 973 | 973 | * Sets compiler options for JDT Compiler | |
| 974 | 974 | */ | |
| 975 | - @SuppressWarnings("rawtypes") | ||
| 976 | 975 | protected void prepareCompilerSetting() { | |
| 977 | - compilerSettings = new HashMap(); | ||
| 976 | + compilerSettings = new HashMap<String, String>(); | ||
| 978 | 977 | ||
| 979 | 978 | compilerSettings.put(CompilerOptions.OPTION_LineNumberAttribute, | |
| 980 | 979 | CompilerOptions.GENERATE); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments