Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add warning logging to deprecated classes.

  • Loading branch information...
commit 66b63b8cbee617fb38297c61d93fc6285ffbee2d 1 parent f27465b
@azymnis authored
View
5 src/java/com/twitter/elephantbird/cascading2/scheme/LzoProtobufB64LineScheme.java
@@ -2,6 +2,9 @@
import com.google.protobuf.Message;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import java.io.IOException;
/**
@@ -12,7 +15,9 @@
@Deprecated
public class LzoProtobufB64LineScheme<M extends Message> extends
LzoProtobufScheme<M> {
+ private static final Logger LOG = LoggerFactory.getLogger(LzoProtobufB64LineScheme.class);
public LzoProtobufB64LineScheme(Class protoClass) {
super(protoClass);
+ LOG.warn("LzoProtobufB64LineScheme is deprecated, please use LzoProtobufScheme");
}
}
View
5 src/java/com/twitter/elephantbird/cascading2/scheme/LzoProtobufBlockScheme.java
@@ -2,6 +2,9 @@
import com.google.protobuf.Message;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import java.io.IOException;
/**
@@ -12,7 +15,9 @@
@Deprecated
public class LzoProtobufBlockScheme<M extends Message> extends
LzoProtobufScheme<M> {
+ private static final Logger LOG = LoggerFactory.getLogger(LzoProtobufBlockScheme.class);
public LzoProtobufBlockScheme(Class protoClass) {
super(protoClass);
+ LOG.warn("LzoProtobufBlockScheme is deprecated, please use LzoProtobufScheme");
}
}
View
5 src/java/com/twitter/elephantbird/cascading2/scheme/LzoThriftB64LineScheme.java
@@ -2,6 +2,9 @@
import org.apache.thrift.TBase;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import java.io.IOException;
/**
@@ -12,7 +15,9 @@
@Deprecated
public class LzoThriftB64LineScheme<M extends TBase<?,?>> extends
LzoThriftScheme<M> {
+ private static final Logger LOG = LoggerFactory.getLogger(LzoThriftB64LineScheme.class);
public LzoThriftB64LineScheme(Class thriftClass) {
super(thriftClass);
+ LOG.warn("LzoThriftB64LineScheme is deprecated, please use LzoThriftScheme");
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.