File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
src/net/sharksystem/asap/protocol
test/net/sharksystem/asap Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -299,8 +299,8 @@ static void checkValidFormat(CharSequence format) throws ASAPException {
299
299
300
300
static void checkValidEra (int era ) throws ASAPException {
301
301
if (era < -1 ) throw new ASAPException ("era cannot be smaller than -1" );
302
- int maxEra = 2 ^ 8 - 1 ;
303
- if (era > maxEra ) throw new ASAPException ("era exceeded max limit of 2^8-1" );
302
+ int maxEra = Integer . MAX_VALUE ;
303
+ if (era > maxEra ) throw new ASAPException ("era exceeded max limit of " + Integer . MAX_VALUE );
304
304
}
305
305
306
306
}
Original file line number Diff line number Diff line change @@ -17,6 +17,12 @@ public class WhiteBoxTests {
17
17
public WhiteBoxTests () {
18
18
}
19
19
20
+ @ Test
21
+ public void scratch () {
22
+ int maxEra = 2 ^8 -1 ;
23
+ int i = 42 ;
24
+ }
25
+
20
26
@ Test
21
27
public void writeReadByteMessages () throws IOException , ASAPException {
22
28
String folder = "tests/writeReadByteMessagesTest" ;
You can’t perform that action at this time.
0 commit comments