@Test public void testPropertyCreation_withNullDeprecationKey() { HadoopConfigurationProperty<Integer> newKeyWithoutDeprecatedKey = new HadoopConfigurationProperty<>("actual.key", 0, (String[]) null); assertThat(newKeyWithoutDeprecatedKey.getDefault()).isEqualTo(0); }
public T getDefault() { return defaultValue; }
HadoopConfigurationProperty { public T getDefault() { return defaultValue; } }
HadoopConfigurationProperty { public T getDefault() { return defaultValue; } HadoopConfigurationProperty(String key);  HadoopConfigurationProperty(String key, T defaultValue, String... deprecatedKeys); }
HadoopConfigurationProperty { public T getDefault() { return defaultValue; } HadoopConfigurationProperty(String key);  HadoopConfigurationProperty(String key, T defaultValue, String... deprecatedKeys); HadoopConfigurationProperty<T> withPrefixes(List<String> keyPrefixes); String getKey(); List<String> getDeprecatedKeys(); T getDefault(); T get(Configuration config, BiFunction<String, T, T> getterFn); String getPassword(Configuration config); Collection<String> getStringCollection(Configuration config); @SuppressWarnings("unchecked") Map<String, String> getPropsWithPrefix(Configuration config); }
HadoopConfigurationProperty { public T getDefault() { return defaultValue; } HadoopConfigurationProperty(String key);  HadoopConfigurationProperty(String key, T defaultValue, String... deprecatedKeys); HadoopConfigurationProperty<T> withPrefixes(List<String> keyPrefixes); String getKey(); List<String> getDeprecatedKeys(); T getDefault(); T get(Configuration config, BiFunction<String, T, T> getterFn); String getPassword(Configuration config); Collection<String> getStringCollection(Configuration config); @SuppressWarnings("unchecked") Map<String, String> getPropsWithPrefix(Configuration config);  }