@Test(expected = IllegalArgumentException.class) public void testNullGetValueKey() throws ReadOnlyException { portletPreferences.getValue(null, null); }
@Override public final String getValue(String key, String def) { final IPortletPreference portletPreference = this.getPortletPreference(key); if (portletPreference != null) { final String[] values = portletPreference.getValues(); if (values == null || values.length == 0) { return def; } return values[0]; } return def; }
AbstractPortletPreferencesImpl implements PortletPreferences { @Override public final String getValue(String key, String def) { final IPortletPreference portletPreference = this.getPortletPreference(key); if (portletPreference != null) { final String[] values = portletPreference.getValues(); if (values == null || values.length == 0) { return def; } return values[0]; } return def; } }
AbstractPortletPreferencesImpl implements PortletPreferences { @Override public final String getValue(String key, String def) { final IPortletPreference portletPreference = this.getPortletPreference(key); if (portletPreference != null) { final String[] values = portletPreference.getValues(); if (values == null || values.length == 0) { return def; } return values[0]; } return def; } AbstractPortletPreferencesImpl(boolean render); }
AbstractPortletPreferencesImpl implements PortletPreferences { @Override public final String getValue(String key, String def) { final IPortletPreference portletPreference = this.getPortletPreference(key); if (portletPreference != null) { final String[] values = portletPreference.getValues(); if (values == null || values.length == 0) { return def; } return values[0]; } return def; } AbstractPortletPreferencesImpl(boolean render); @Override final boolean isReadOnly(String key); @Override final String getValue(String key, String def); @Override final String[] getValues(String key, String[] def); @Override final void setValue(String key, String value); @Override final void setValues(String key, String[] values); @Override final Enumeration<String> getNames(); @Override final Map<String, String[]> getMap(); @Override final void reset(String key); @Override final void store(); }
AbstractPortletPreferencesImpl implements PortletPreferences { @Override public final String getValue(String key, String def) { final IPortletPreference portletPreference = this.getPortletPreference(key); if (portletPreference != null) { final String[] values = portletPreference.getValues(); if (values == null || values.length == 0) { return def; } return values[0]; } return def; } AbstractPortletPreferencesImpl(boolean render); @Override final boolean isReadOnly(String key); @Override final String getValue(String key, String def); @Override final String[] getValues(String key, String[] def); @Override final void setValue(String key, String value); @Override final void setValues(String key, String[] values); @Override final Enumeration<String> getNames(); @Override final Map<String, String[]> getMap(); @Override final void reset(String key); @Override final void store();  }