summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--platform/java/mupdf_native.h2
-rw-r--r--platform/java/src/com/artifex/mupdf/fitz/Buffer.java4
2 files changed, 1 insertions, 5 deletions
diff --git a/platform/java/mupdf_native.h b/platform/java/mupdf_native.h
index 83b8317c..144bfefb 100644
--- a/platform/java/mupdf_native.h
+++ b/platform/java/mupdf_native.h
@@ -66,8 +66,6 @@ JNIEXPORT jlong JNICALL Java_com_artifex_mupdf_fitz_Annotation_advance
#ifdef __cplusplus
extern "C" {
#endif
-#undef com_artifex_mupdf_fitz_Buffer_DEFAULT_BUFFER_SIZE
-#define com_artifex_mupdf_fitz_Buffer_DEFAULT_BUFFER_SIZE 1024L
/*
* Class: com_artifex_mupdf_fitz_Buffer
* Method: finalize
diff --git a/platform/java/src/com/artifex/mupdf/fitz/Buffer.java b/platform/java/src/com/artifex/mupdf/fitz/Buffer.java
index c98e9985..252ab5d0 100644
--- a/platform/java/src/com/artifex/mupdf/fitz/Buffer.java
+++ b/platform/java/src/com/artifex/mupdf/fitz/Buffer.java
@@ -6,8 +6,6 @@ public class Buffer
Context.init();
}
- public static final int DEFAULT_BUFFER_SIZE = 1024;
-
private long pointer;
protected native void finalize();
@@ -24,7 +22,7 @@ public class Buffer
}
public Buffer() {
- pointer = newNativeBuffer(DEFAULT_BUFFER_SIZE);
+ pointer = newNativeBuffer(0);
}
public native int getLength();