NotFoundException.java (zxing-zxing-3.4.1) | : | NotFoundException.java (zxing-zxing-3.5.0) | ||
---|---|---|---|---|
skipping to change at line 37 | skipping to change at line 37 | |||
private static final NotFoundException INSTANCE = new NotFoundException(); | private static final NotFoundException INSTANCE = new NotFoundException(); | |||
static { | static { | |||
INSTANCE.setStackTrace(NO_TRACE); // since it's meaningless | INSTANCE.setStackTrace(NO_TRACE); // since it's meaningless | |||
} | } | |||
private NotFoundException() { | private NotFoundException() { | |||
// do nothing | // do nothing | |||
} | } | |||
public static NotFoundException getNotFoundInstance() { | public static NotFoundException getNotFoundInstance() { | |||
return INSTANCE; | return isStackTrace ? new NotFoundException() : INSTANCE; | |||
} | } | |||
} | } | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |