Skip to content

Commit

Permalink
LPS-54982 Ran ant format-source
Browse files Browse the repository at this point in the history
  • Loading branch information
hhuijser authored and brianchandotcom committed Apr 15, 2015
1 parent 9e89006 commit 5b590e6
Show file tree
Hide file tree
Showing 93 changed files with 146 additions and 451 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@
*/
@Component(
immediate = true,
property = {
"model.class.name=" + PortletProvider.CLASS_NAME_ANY
},
property = {"model.class.name=" + PortletProvider.CLASS_NAME_ANY},
service = BrowsePortletProvider.class
)
public class AssetBrowserPortletProvider implements BrowsePortletProvider {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,7 @@ public void testAnyDLFileEntryType() throws Exception {
new String[] {String.valueOf(dlFileEntryClassNameId)});
preferenceMap.put(
"anyClassTypeDLFileEntryAssetRendererFactory",
new String[] {
String.valueOf(Boolean.TRUE)
});
new String[] {String.valueOf(Boolean.TRUE)});

PortletPreferences portletPreferences = getImportedPortletPreferences(
preferenceMap);
Expand Down Expand Up @@ -146,9 +144,7 @@ public void testAnyJournalStructure() throws Exception {
new String[] {String.valueOf(journalArticleClassNameId)});
preferenceMap.put(
"anyClassTypeJournalArticleAssetRendererFactory",
new String[] {
String.valueOf(Boolean.TRUE)
});
new String[] {String.valueOf(Boolean.TRUE)});

PortletPreferences portletPreferences = getImportedPortletPreferences(
preferenceMap);
Expand Down Expand Up @@ -417,9 +413,7 @@ public void testOneJournalStructure() throws Exception {
new String[] {String.valueOf(journalArticleClassNameId)});
preferenceMap.put(
"anyClassTypeJournalArticleAssetRendererFactory",
new String[] {
String.valueOf(ddmStructure.getStructureId())
});
new String[] {String.valueOf(ddmStructure.getStructureId())});
preferenceMap.put(
"classTypeIds",
new String[] {String.valueOf(ddmStructure.getStructureId())});
Expand Down Expand Up @@ -498,9 +492,7 @@ public void testSeveralDLFileEntryTypes() throws Exception {

preferenceMap.put(
"anyClassTypeDLFileEntryAssetRendererFactory",
new String[] {
String.valueOf(Boolean.FALSE)
});
new String[] {String.valueOf(Boolean.FALSE)});

preferenceMap.put(
"classTypeIdsDLFileEntryAssetRendererFactory",
Expand Down Expand Up @@ -549,9 +541,7 @@ public void testSeveralJournalStructures() throws Exception {

preferenceMap.put(
"anyClassTypeJournalArticleAssetRendererFactory",
new String[] {
String.valueOf(Boolean.FALSE)
});
new String[] {String.valueOf(Boolean.FALSE)});

preferenceMap.put(
"classTypeIdsJournalArticleAssetRendererFactory",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,8 @@
*/
@Component(
immediate = true,
property = {
"model.class.name=" + PortletProvider.CLASS_NAME_ANY
},
service = {
AddPortletProvider.class, ViewPortletProvider.class
}
property = {"model.class.name=" + PortletProvider.CLASS_NAME_ANY},
service = {AddPortletProvider.class, ViewPortletProvider.class}
)
public class AssetPublisherPortletProvider
implements AddPortletProvider, ViewPortletProvider {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
* @author Roberto Díaz
*/
@Component(
property = {
"model.class.name=com.liferay.portlet.blogs.model.BlogsEntry"
}
property = {"model.class.name=com.liferay.portlet.blogs.model.BlogsEntry"}
)
public class BlogsPortletRatingsDefinition implements PortletRatingsDefinition {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@
*/
@Component(
immediate = true,
property = {
"search.asset.type=com.liferay.bookmarks.model.BookmarksEntry"
},
property = {"search.asset.type=com.liferay.bookmarks.model.BookmarksEntry"},
service = AssetRendererFactory.class
)
public class BookmarksEntryAssetRendererFactory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
* @author Roberto Díaz
*/
@Component(
property = {
"model.class.name=com.liferay.bookmarks.model.BookmarksEntry"
}
property = {"model.class.name=com.liferay.bookmarks.model.BookmarksEntry"}
)
public class BookmarksPortletRatingsDefinition
implements PortletRatingsDefinition {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@
*/
@Component(
immediate = true,
property = {
"model.class.name=com.liferay.bookmarks.model.BookmarksEntry"
}
property = {"model.class.name=com.liferay.bookmarks.model.BookmarksEntry"}
)
public class BookmarksEntryPermissionChecker
implements BaseModelPermissionChecker {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@
*/
@Component(
immediate = true,
property = {
"model.class.name=com.liferay.bookmarks.model.BookmarksFolder"
}
property = {"model.class.name=com.liferay.bookmarks.model.BookmarksFolder"}
)
public class BookmarksFolderPermissionChecker
implements BaseModelPermissionChecker {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@
* @author Ambrin Chaudhary
*/
@Component(
property = {
"editor.config.key=commentsEditor", "service.ranking:Integer=0"
}
property = {"editor.config.key=commentsEditor", "service.ranking:Integer=0"}
)
public class CommentsEditorConfigContributor
implements EditorConfigContributor {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,7 @@ protected String renderTextField(

return StringUtil.replace(
_INPUT_FIELD_TEMPLATE,
new String[] {
"$childElementsHTML", "$name", "$value"
},
new String[] {"$childElementsHTML", "$name", "$value"},
new String[] {
ddmFormFieldRenderingContext.getChildElementsHTML(),
ddmFormFieldRenderingContext.getName(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@
@Component(
immediate = true,
property = {"templatePath=/META-INF/resources/checkbox.soy"},
service = {
CheckboxDDMFormFieldRenderer.class, DDMFormFieldRenderer.class
}
service = {CheckboxDDMFormFieldRenderer.class, DDMFormFieldRenderer.class}
)
public class CheckboxDDMFormFieldRenderer extends BaseDDMFormFieldRenderer {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@
*/
@Component(
immediate = true, property = {"templatePath=/META-INF/resources/text.soy"},
service = {
TextDDMFormFieldRenderer.class, DDMFormFieldRenderer.class
}
service = {TextDDMFormFieldRenderer.class, DDMFormFieldRenderer.class}
)
public class TextDDMFormFieldRenderer extends BaseDDMFormFieldRenderer {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@
@Component(
configurationPid = "com.liferay.iframe.web.configuration.IFrameConfiguration",
configurationPolicy = ConfigurationPolicy.OPTIONAL, immediate = true,
property = {
"javax.portlet.name=" + IFramePortletKeys.IFRAME
},
property = {"javax.portlet.name=" + IFramePortletKeys.IFRAME},
service = ConfigurationAction.class
)
public class IFrameConfigurationAction extends DefaultConfigurationAction {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@
*/
@Component(
immediate = true,
property = {
"javax.portlet.name=" + InvitationPortletKeys.INVITATION
},
property = {"javax.portlet.name=" + InvitationPortletKeys.INVITATION},
service = ConfigurationAction.class
)
public class InvitationConfigurationAction extends DefaultConfigurationAction {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,19 +139,15 @@ else if (Validator.isNotNull(emailAddress)) {
"[$FROM_ADDRESS$]", "[$FROM_NAME$]", "[$PAGE_URL$]",
"[$PORTAL_URL$]"
},
new String[] {
fromAddress, fromName, layoutFullURL, portalURL
});
new String[] {fromAddress, fromName, layoutFullURL, portalURL});

body = StringUtil.replace(
body,
new String[] {
"[$FROM_ADDRESS$]", "[$FROM_NAME$]", "[$PAGE_URL$]",
"[$PORTAL_URL$]"
},
new String[] {
fromAddress, fromName, layoutFullURL, portalURL
});
new String[] {fromAddress, fromName, layoutFullURL, portalURL});

for (String emailAddress : validEmailAddresses) {
InternetAddress to = new InternetAddress(emailAddress);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@
*/
@Component(
immediate = true,
property = {
"javax.portlet.name=" + JournalPortletKeys.JOURNAL
},
property = {"javax.portlet.name=" + JournalPortletKeys.JOURNAL},
service = CustomAttributesDisplay.class
)
public class JournalArticleCustomAttributesDisplay
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@
*/
@Component(
immediate = true,
property = {
"javax.portlet.name=" + JournalPortletKeys.JOURNAL
},
property = {"javax.portlet.name=" + JournalPortletKeys.JOURNAL},
service = CustomAttributesDisplay.class
)
public class JournalFolderCustomAttributesDisplay
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@
* @author Eduardo Garcia
*/
@Component(
property = {
"javax.portlet.name=" + JournalPortletKeys.JOURNAL
},
property = {"javax.portlet.name=" + JournalPortletKeys.JOURNAL},
service = DDMDisplay.class
)
public class JournalDDMDisplay extends BaseDDMDisplay {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@
* @see com.liferay.portlet.journal.lar.JournalCreationStrategy
*/
@Component(
property = {
"javax.portlet.name=" + JournalPortletKeys.JOURNAL
},
property = {"javax.portlet.name=" + JournalPortletKeys.JOURNAL},
service = PortletDataHandler.class
)
public class JournalPortletDataHandler extends BasePortletDataHandler {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@
* @author Tina Tian
*/
@Component(
property = {
"javax.portlet.name=" + JournalPortletKeys.JOURNAL
},
property = {"javax.portlet.name=" + JournalPortletKeys.JOURNAL},
service = SchedulerEntry.class
)
public class CheckArticleMessageListener
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
*/
@Component(
immediate = true,
property = {
"javax.portlet.name=" + JournalPortletKeys.JOURNAL
},
property = {"javax.portlet.name=" + JournalPortletKeys.JOURNAL},
service = UserNotificationDefinition.class
)
public class JournalAddEntryUserNotificationDefinition
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
*/
@Component(
immediate = true,
property = {
"javax.portlet.name=" + JournalPortletKeys.JOURNAL
},
property = {"javax.portlet.name=" + JournalPortletKeys.JOURNAL},
service = UserNotificationDefinition.class
)
public class JournalUpdateEntryUserNotificationDefinition
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@
*/
@Component(
immediate = true,
property = {
"javax.portlet.name=" + JournalPortletKeys.JOURNAL
},
property = {"javax.portlet.name=" + JournalPortletKeys.JOURNAL},
service = UserNotificationHandler.class
)
public class JournalUserNotificationHandler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@
*/
@Component(
immediate = true,
property = {
"javax.portlet.name=" + JournalPortletKeys.JOURNAL
},
property = {"javax.portlet.name=" + JournalPortletKeys.JOURNAL},
service = ConfigurationAction.class
)
public class JournalConfigurationAction extends DefaultConfigurationAction {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@
*/
@Component(
immediate = true,
property = {
"javax.portlet.name=" + JournalPortletKeys.JOURNAL
},
property = {"javax.portlet.name=" + JournalPortletKeys.JOURNAL},
service = TemplateHandler.class
)
public class JournalTemplateHandler extends BaseDDMTemplateHandler {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -641,10 +641,7 @@ protected static String processURL(
SyndEntry syndEntry) {

url = StringUtil.replace(
url,
new String[] {
"@group_id@", "@image_path@", "@main_path@"
},
url, new String[] {"@group_id@", "@image_path@", "@main_path@"},
new String[] {
String.valueOf(feed.getGroupId()), themeDisplay.getPathImage(),
themeDisplay.getPathMain()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@
*/
@Component(
immediate = true,
property = {
"javax.portlet.name=" + JournalPortletKeys.JOURNAL
},
property = {"javax.portlet.name=" + JournalPortletKeys.JOURNAL},
service = WebDAVStorage.class
)
public class JournalWebDAVStorageImpl extends BaseWebDAVStorageImpl {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@
* @author Brian Wing Shun Chan
*/
@Component(
immediate = true,
property = {
"javax.portlet.name=" + RSSPortletKeys.RSS
},
immediate = true, property = {"javax.portlet.name=" + RSSPortletKeys.RSS},
service = ConfigurationAction.class
)
public class RSSConfigurationAction extends DefaultConfigurationAction {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@
* @author Eudaldo Alonso
*/
@Component(
immediate = true,
property = {
"javax.portlet.name=" + RSSPortletKeys.RSS
},
immediate = true, property = {"javax.portlet.name=" + RSSPortletKeys.RSS},
service = TemplateHandler.class
)
public class RSSPortletDisplayTemplateHandler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@
* @author Brian Wing Shun Chan
*/
@Component(
immediate = true,
property = {
"javax.portlet.name=" + RSSPortletKeys.RSS
}
immediate = true, property = {"javax.portlet.name=" + RSSPortletKeys.RSS}
)
public class RSSPreferencesValidator implements PreferencesValidator {

Expand Down
Loading

0 comments on commit 5b590e6

Please sign in to comment.