Permalink
Browse files

Add warning logging to deprecated classes.

  • Loading branch information...
1 parent f27465b commit 66b63b8cbee617fb38297c61d93fc6285ffbee2d @azymnis committed Mar 30, 2012
@@ -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");
}
}
@@ -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");
}
}
@@ -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");
}
}

0 comments on commit 66b63b8

Please sign in to comment.