< prev index next >

src/com/sun/interview/ListQuestion.java

Print this page
rev 145 : 7902237: Fixing raw use of parameterized class
Reviewed-by: jjg

*** 123,135 **** * the loop body, to be used when getSummary() returns null. */ public String getDefaultSummary() { if (defaultSummary == null) { // recycle any default summaries that are no longer required ! Vector bodies = question.bodies; for (int i = 0; i < bodies.size(); i++) { ! Body b = (Body) (bodies.elementAt(i)); if (b.defaultSummary != null && b.getSummary() != null && !b.defaultSummary.equals(b.getSummary())) { b.defaultSummary = null; } --- 123,135 ---- * the loop body, to be used when getSummary() returns null. */ public String getDefaultSummary() { if (defaultSummary == null) { // recycle any default summaries that are no longer required ! Vector<Body> bodies = question.bodies; for (int i = 0; i < bodies.size(); i++) { ! Body b = (bodies.elementAt(i)); if (b.defaultSummary != null && b.getSummary() != null && !b.defaultSummary.equals(b.getSummary())) { b.defaultSummary = null; }
*** 140,150 **** String s = MessageFormat.format(i18n.getString("lp.newValue"), new Object[] { new Integer(v) }); // check s is not the same as any current default summary; // if it is, reset it to null for (int i = 0; i < bodies.size(); i++) { ! Body b = (Body) (bodies.elementAt(i)); if (s.equals(b.defaultSummary)) { s = null; break; } } --- 140,150 ---- String s = MessageFormat.format(i18n.getString("lp.newValue"), new Object[] { new Integer(v) }); // check s is not the same as any current default summary; // if it is, reset it to null for (int i = 0; i < bodies.size(); i++) { ! Body b = (bodies.elementAt(i)); if (s.equals(b.defaultSummary)) { s = null; break; } }
< prev index next >