File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -57,11 +57,11 @@ public final int getResultCode() {
5757 /**
5858 * Exception raised from a system constant table lookup.
5959 */
60- public static final class ConstantDerviedException extends LmdbNativeException {
60+ public static final class ConstantDerivedException extends LmdbNativeException {
6161
6262 private static final long serialVersionUID = 1L ;
6363
64- ConstantDerviedException (final int rc , final String message ) {
64+ ConstantDerivedException (final int rc , final String message ) {
6565 super (rc , "Platform constant error code: " + message );
6666 }
6767 }
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ static void checkRc(final int rc) {
110110 throw new IllegalArgumentException ("Unknown result code " + rc );
111111 }
112112 final String msg = constant .name () + " " + constant .toString ();
113- throw new LmdbNativeException .ConstantDerviedException (rc , msg );
113+ throw new LmdbNativeException .ConstantDerivedException (rc , msg );
114114 }
115115
116116}
Original file line number Diff line number Diff line change 6767import static org .lmdbjava .EnvFlags .MDB_NOSUBDIR ;
6868import static org .lmdbjava .GetOp .MDB_SET_KEY ;
6969import static org .lmdbjava .KeyRange .atMost ;
70- import org .lmdbjava .LmdbNativeException .ConstantDerviedException ;
70+ import org .lmdbjava .LmdbNativeException .ConstantDerivedException ;
7171import static org .lmdbjava .PutFlags .MDB_NODUPDATA ;
7272import static org .lmdbjava .PutFlags .MDB_NOOVERWRITE ;
7373import static org .lmdbjava .TestUtils .DB_1 ;
@@ -98,7 +98,7 @@ public void before() throws IOException {
9898 .open (path , MDB_NOSUBDIR );
9999 }
100100
101- @ Test (expected = ConstantDerviedException .class )
101+ @ Test (expected = ConstantDerivedException .class )
102102 public void close () {
103103 final Dbi <ByteBuffer > db = env .openDbi (DB_1 , MDB_CREATE );
104104 db .put (bb (1 ), bb (42 ));
Original file line number Diff line number Diff line change 4343import org .lmdbjava .Env .MapFullException ;
4444import org .lmdbjava .Env .ReadersFullException ;
4545import org .lmdbjava .Env .VersionMismatchException ;
46- import org .lmdbjava .LmdbNativeException .ConstantDerviedException ;
46+ import org .lmdbjava .LmdbNativeException .ConstantDerivedException ;
4747import org .lmdbjava .LmdbNativeException .PageCorruptedException ;
4848import org .lmdbjava .LmdbNativeException .PageFullException ;
4949import org .lmdbjava .LmdbNativeException .PageNotFoundException ;
@@ -103,7 +103,7 @@ public void checkErrAll() {
103103 }
104104 }
105105
106- @ Test (expected = ConstantDerviedException .class )
106+ @ Test (expected = ConstantDerivedException .class )
107107 public void checkErrConstantDerived () {
108108 checkRc (20 );
109109 }
@@ -113,7 +113,7 @@ public void checkErrConstantDerivedMessage() {
113113 try {
114114 checkRc (2 );
115115 fail ("Should have raised exception" );
116- } catch (final ConstantDerviedException ex ) {
116+ } catch (final ConstantDerivedException ex ) {
117117 assertThat (ex .getMessage (), containsString ("No such file or directory" ));
118118 }
119119 }
You can’t perform that action at this time.
0 commit comments