File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ public Long getTimestampMillis() {
98
98
* @return the current timestamp, or null.
99
99
*/
100
100
public TemporalAccessor getTimestamp () {
101
- Object value = get (KEY_QUERY_TIMESTAMP , null );
101
+ Object value = get (KEY_QUERY_TIMESTAMP , Object . class );
102
102
if (value instanceof TemporalAccessor ) {
103
103
return (TemporalAccessor ) value ;
104
104
} else if (value instanceof Long ) {
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ public void testGetKeys() {
109
109
Set <String > keys = ctx .getKeys (String .class );
110
110
assertNotNull (keys );
111
111
assertFalse (keys .isEmpty ());
112
- assertEquals (String .class , keys .iterator ().next ());
112
+ assertEquals (String .class . getName () , keys .iterator ().next ());
113
113
keys = ctx .getKeys (Integer .class );
114
114
assertNotNull (keys );
115
115
assertTrue (keys .size () == 2 );
You can’t perform that action at this time.
0 commit comments