Skip to content

Commit 24bcdee

Browse files
committed
cleanup
1 parent 9d3f15d commit 24bcdee

5 files changed

Lines changed: 12 additions & 10 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
<configuration>
106106
<source>1.7</source>
107107
<target>1.7</target>
108-
<encoding>ISO-8859-1</encoding>
108+
<encoding>ISO-8859-1</encoding><compilerArgument>-Xlint:unchecked</compilerArgument>
109109
</configuration>
110110
</plugin>
111111
<plugin>

src/main/java/org/teachingextensions/approvals/lite/util/ObjectUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public static Object[] extractArray(Object[] from, String methodName) {
6868

6969
public static Method getGreatestCommonDenominator(Object[] from,
7070
String methodName) throws SecurityException, NoSuchMethodException {
71-
List<Class> classes = new ArrayList<>();
71+
List<Class<?>> classes = new ArrayList<>();
7272
ArrayUtils.addArray(classes, getAllCastableClasses(from[0]));
7373
for (Object o : from) {
7474
for (int i = classes.size() - 1; i >= 0; i--) {

src/main/java/org/teachingextensions/simpleparser/Parser.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ public class Parser
1414
/**
1515
* Parses a template with a data object to create a string
1616
*
17-
* <div><b>Example:</b> Words data = new Words ();<br>
18-
* data.action = "Shake";<br>
19-
* data.weapon = "spear";<br>
20-
* String greeting = Parser.parse("Captain {action}{weapon}!!!",data)<br></div>
21-
*
17+
* <div><b>Example:</b><pre>{@code
18+
* Words data = new Words();
19+
* data.action = "Shake";
20+
* data.weapon = "spear";
21+
* String greeting = Parser.parse("Captain {action}{weapon}!!!", data);
22+
* }</pre></div>
23+
*
2224
* Captain Shakespear!!!
2325
*
2426
* @param text
@@ -33,7 +35,7 @@ public static String parse(String text, Object data)
3335
}
3436
public static String parse(String text, String startCharacter, String endCharacter, Object data)
3537
{
36-
StringBuffer sb = new StringBuffer();
38+
StringBuilder sb = new StringBuilder();
3739
String temp = text;
3840
int start = temp.indexOf(startCharacter);
3941
while (start > 0)

src/main/java/org/teachingextensions/windows/MessageBox.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* <img src=
99
* "http://www.mhhe.com/engcs/compsci/wu2/graphics/wu2java/common/javabook2Doc/mbox3.gif"
10-
* align="left" alt="A message box" height="60" width="145"> <br>
10+
* style="text-align: left" alt="A message box" height="60" width="145"> <br>
1111
* <br>
1212
* <br>
1313
* <br>

src/main/java/org/teachingextensions/windows/ProgramWindow.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import org.teachingextensions.approvals.lite.util.WindowUtils;
1919

2020
/**
21-
* <img src="http://ftpmirror.your.org/pub/wikimedia/images/wikibooks/de/2/2c/JPanel_Add_JButton_PAGE_END.JPG" align="left" alt="A window image" height="50" width="75" > Program Window
21+
* <img src="http://ftpmirror.your.org/pub/wikimedia/images/wikibooks/de/2/2c/JPanel_Add_JButton_PAGE_END.JPG" style="text-align: left" alt="A window image" height="50" width="75" > Program Window
2222
* allows you to change the color of the background and more...
2323
*/
2424
@SuppressWarnings({ "serial" })

0 commit comments

Comments
 (0)