Home
last modified time | relevance | path

Searched refs:format2 (Results 1 – 4 of 4) sorted by relevance

/libcore/luni/src/main/java/java/security/
DIdentity.java116 String format2; in checkKeysEqual() local
118 || (((format2 = pk2.getFormat()) != null) ^ (format1 != null)) in checkKeysEqual()
119 || ((format1 != null) && !format1.equals(format2))) { in checkKeysEqual()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DMessageFormatTest.java46 private MessageFormat format1, format2, format3; field in MessageFormatTest
540 MessageFormat format2 = new MessageFormat("{1}"); in test_equalsLjava_lang_Object() local
541 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 …]
DDecimalFormatTest.java778 DecimalFormat format2 = new DecimalFormat(); in testConstructor_noArg() local
779 format2.applyPattern("'$'1000.0000"); in testConstructor_noArg()
781 format2.equals(format1)); in testConstructor_noArg()
836 DecimalFormat format2 = new DecimalFormat(); in testConstructor_stringAndSymbols() local
837 format2.applyPattern("'$'1000.0000"); in testConstructor_stringAndSymbols()
838 format2.setDecimalFormatSymbols(dfs); in testConstructor_stringAndSymbols()
840 format2.equals(format1)); in testConstructor_stringAndSymbols()
DSimpleDateFormatTest.java235 SimpleDateFormat format2 = new SimpleDateFormat("y'y'yy", symbols); in test_hashCode() local
236 assertFalse("objects has equal hash code", format2.hashCode() == format.hashCode()); in test_hashCode()