Skip to content

Commit 6d97e60

Browse files
committed
Removing several deprecations
Comments: 1. `DocumentWriteOperation` - no comment as to why the enum value is deprecated, and it's referenced in multiple places that aren't deprecated. 2. `PlanBuilder` - not clear why `xmlAttributeSeq` is a problem. 3. `SemValue` - `stores` is used in multiple places. 4. `GSONHandle` - no comment as to why `getParser` is deprecated. 5. `MarkLogicServerException` - `getFailedRquest` is referenced in many places.
1 parent 82e9c4c commit 6d97e60

File tree

5 files changed

+92
-96
lines changed

5 files changed

+92
-96
lines changed

marklogic-client-api/src/main/java/com/marklogic/client/MarkLogicServerException.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ public String getServerStackTrace() {
9494
return (failedRequest == null) ? null : failedRequest.getStackTrace();
9595
}
9696

97-
@Deprecated
9897
public FailedRequest getFailedRequest() {
9998
return failedRequest;
10099
}

marklogic-client-api/src/main/java/com/marklogic/client/document/DocumentWriteOperation.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* {@link DocumentWriteSet#disableDefault disableDefault}.
2929
*/
3030
public interface DocumentWriteOperation extends Comparable<DocumentWriteOperation> {
31-
public enum OperationType {
31+
enum OperationType {
3232
/** This write operation (REST API mime part) sets the defaults for the
3333
* rest of the request.
3434
* @see <a href="http://docs.marklogic.com/guide/rest-dev/bulk#id_56498">
@@ -42,8 +42,8 @@ public enum OperationType {
4242
* <a href="http://docs.marklogic.com/guide/rest-dev/bulk#id_54554">
4343
* REST API Guide -&gt; Example: Reverting to System Default Metadata</a>
4444
*/
45-
@Deprecated
4645
DISABLE_METADATA_DEFAULT,
46+
4747
/** This write operation (REST API mime part) creates or overwrites
4848
* one document and/or document metadata.
4949
* @see <a href="http://docs.marklogic.com/guide/rest-dev/bulk#id_33756">
@@ -128,7 +128,7 @@ public static DocumentUriMaker uriMaker(String format) throws IllegalArgumentExc
128128

129129
if(format == null || format.length() == 0)
130130
throw new IllegalArgumentException("Format cannot be null or empty");
131-
131+
132132
final class FormatUriMaker {
133133
private String uriFormat;
134134

0 commit comments

Comments
 (0)