Searched refs:format2 (Results 1 – 4 of 4) sorted by relevance
116 String format2; in checkKeysEqual() local118 || (((format2 = pk2.getFormat()) != null) ^ (format1 != null)) in checkKeysEqual()119 || ((format1 != null) && !format1.equals(format2))) { in checkKeysEqual()
46 private MessageFormat format1, format2, format3; field in MessageFormatTest540 MessageFormat format2 = new MessageFormat("{1}"); in test_equalsLjava_lang_Object() local541 assertTrue("Should not be equal", !format1.equals(format2)); in test_equalsLjava_lang_Object()542 format2.applyPattern("{0}"); in test_equalsLjava_lang_Object()543 assertTrue("Should be equal", format1.equals(format2)); in test_equalsLjava_lang_Object()546 format2.setFormat(0, new SimpleDateFormat(date.toPattern())); in test_equalsLjava_lang_Object()547 assertTrue("Should be equal2", format1.equals(format2)); in test_equalsLjava_lang_Object()624 formats = format2.getFormats(); in test_getFormats()658 formats = format2.getFormatsByArgumentIndex(); in test_getFormatsByArgumentIndex()717 MessageFormat f2 = (MessageFormat) format2.clone(); in test_setFormatByArgumentIndexILjava_text_Format()[all …]
778 DecimalFormat format2 = new DecimalFormat(); in testConstructor_noArg() local779 format2.applyPattern("'$'1000.0000"); in testConstructor_noArg()781 format2.equals(format1)); in testConstructor_noArg()836 DecimalFormat format2 = new DecimalFormat(); in testConstructor_stringAndSymbols() local837 format2.applyPattern("'$'1000.0000"); in testConstructor_stringAndSymbols()838 format2.setDecimalFormatSymbols(dfs); in testConstructor_stringAndSymbols()840 format2.equals(format1)); in testConstructor_stringAndSymbols()
235 SimpleDateFormat format2 = new SimpleDateFormat("y'y'yy", symbols); in test_hashCode() local236 assertFalse("objects has equal hash code", format2.hashCode() == format.hashCode()); in test_hashCode()