Permalink
Browse files

mark new stuff since 1.9

deprecate Properties2.getSystemProperty helpers (use SystemProperty instead)
  • Loading branch information...
1 parent 3c17ed6 commit b30935554af4d5c0dbe0c10347014f1fecc4d0a8 @jdillon jdillon committed Jan 12, 2014
@@ -19,12 +19,13 @@
import com.google.common.base.Throwables;
import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
import static com.google.common.base.Preconditions.checkNotNull;
/**
* Helper to read Maven pom.properties metadata.
+ *
+ * @since 1.9
*/
public class PomProperties
extends Properties
@@ -37,7 +38,7 @@
public static final String VERSION = "version";
- private static final Logger log = LoggerFactory.getLogger(PomProperties.class);
+ private static final Logger log = Loggers.getLogger(PomProperties.class);
public PomProperties(final Class owner, final String groupId, final String artifactId) {
checkNotNull(owner);
@@ -72,6 +72,10 @@ public static Properties load(final URL url) throws IOException {
return result;
}
+ /**
+ * @deprecated Use {@link SystemProperty}.
+ */
+ @Deprecated
public static String getSystemProperty(final Class<?> type, final @NonNls String name,
final @Nullable Object defaultValue)
{
@@ -85,6 +89,10 @@ public static String getSystemProperty(final Class<?> type, final @NonNls String
}
}
+ /**
+ * @deprecated Use {@link SystemProperty}.
+ */
+ @Deprecated
public static String getSystemProperty(final Class<?> type, final @NonNls String name) {
return getSystemProperty(type, name, null);
}
@@ -24,16 +24,17 @@
import com.google.common.annotations.VisibleForTesting;
import com.google.common.collect.Lists;
import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
import static com.google.common.base.Preconditions.checkNotNull;
/**
* Helper to access System properties.
+ *
+ * @since 1.9
*/
public class SystemProperty
{
- private static final Logger log = LoggerFactory.getLogger(SystemProperty.class);
+ private static final Logger log = Loggers.getLogger(SystemProperty.class);
private final String name;

0 comments on commit b309355

Please sign in to comment.