summaryrefslogtreecommitdiffstats
path: root/src/java/com/healthmarketscience/jackcess/PageChannel.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/com/healthmarketscience/jackcess/PageChannel.java')
-rw-r--r--src/java/com/healthmarketscience/jackcess/PageChannel.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/java/com/healthmarketscience/jackcess/PageChannel.java b/src/java/com/healthmarketscience/jackcess/PageChannel.java
index dcd31a6..0c823c8 100644
--- a/src/java/com/healthmarketscience/jackcess/PageChannel.java
+++ b/src/java/com/healthmarketscience/jackcess/PageChannel.java
@@ -85,6 +85,9 @@ public class PageChannel implements Channel, Flushable {
* Only used by unit tests
*/
PageChannel(boolean testing) {
+ if(!testing) {
+ throw new IllegalArgumentException();
+ }
_channel = null;
_format = JetFormat.VERSION_4;
_autoSync = false;