View DDMJsResources.java
1 2 3 4 5 6 7 8 9 10
@Component(
property = {
"osgi.http.whiteboard.resource.pattern=/kaleo/resources/*",
"osgi.http.whiteboard.resource.prefix=/",
"osgi.http.whiteboard.servlet.pattern=/kaleo/resources/*" // temporary since this was the old property
},
service = Object.class
)
public class DDMJsResources {
}
View bnd.bnd
1 2 3 4 5 6 7 8 9 10
Import-Package:\
!com.liferay.portal.tools.sql,\
!javax.activation.*,\
!javax.crypto.*,\
!javax.imageio.*,\
!javax.mail.*,\
!javax.naming.*,\
!javax.sql,\
!junit.framework.*,\
!net.sf.akismet.*,\
View BaseDB.java.patch
1 2 3 4 5 6 7 8 9 10
@@ -23,8 +23,12 @@ import com.liferay.portal.kernel.dao.db.IndexMetadataFactoryUtil;
import com.liferay.portal.kernel.dao.jdbc.DataAccess;
import com.liferay.portal.kernel.io.unsync.UnsyncBufferedReader;
import com.liferay.portal.kernel.io.unsync.UnsyncStringReader;
+import com.liferay.portal.kernel.io.unsync.UnsyncStringWriter;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
+import com.liferay.portal.kernel.template.StringTemplateResource;
+import com.liferay.portal.kernel.template.Template;
+import com.liferay.portal.kernel.template.TemplateManagerUtil;
View code.md

Hate Checked Exceptions???

Try this little trick borrowed from Netty.

So you have an exception:

  • you don't want to check
  • you don't want to swallow
  • you don't want to pollute the method signature

Consider the following class Throw:

View LangBuilder.java.patch
1 2 3 4 5 6 7 8 9 10
@@ -18,7 +18,9 @@ import com.liferay.portal.kernel.io.OutputStreamWriter;
import com.liferay.portal.kernel.io.unsync.UnsyncBufferedReader;
import com.liferay.portal.kernel.io.unsync.UnsyncBufferedWriter;
import com.liferay.portal.kernel.io.unsync.UnsyncStringReader;
+import com.liferay.portal.kernel.microsofttranslator.MicrosoftTranslator;
import com.liferay.portal.kernel.microsofttranslator.MicrosoftTranslatorException;
+import com.liferay.portal.kernel.microsofttranslator.MicrosoftTranslatorFactoryUtil;
import com.liferay.portal.kernel.util.FileUtil;
import com.liferay.portal.kernel.util.GetterUtil;
import com.liferay.portal.kernel.util.NaturalOrderStringComparator;
View FIAndEquinoxTest.java
1 2 3 4 5 6 7 8 9 10
import java.io.File;
 
import java.util.HashMap;
import java.util.Map;
import java.util.ServiceLoader;
 
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
import org.osgi.framework.launch.Framework;
import org.osgi.framework.launch.FrameworkFactory;
View stacktrace.log
1 2 3 4 5 6 7 8 9 10
2014-09-29 12:42:37
Full thread dump OpenJDK 64-Bit Server VM (24.65-b04 mixed mode):
 
"Attach Listener" daemon prio=10 tid=0x00007f7e98001000 nid=0x2776 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
 
"ajp-bio-8009-AsyncTimeout" daemon prio=10 tid=0x00007f7ed85e7800 nid=0x26b9 waiting on condition [0x00007f7df2bea000]
java.lang.Thread.State: TIMED_WAITING (sleeping)
at java.lang.Thread.sleep(Native Method)
at org.apache.tomcat.util.net.JIoEndpoint$AsyncTimeout.run(JIoEndpoint.java:148)
View VelocityPortlet.java.patch
1 2 3 4 5 6 7 8 9 10
@@ -14,18 +14,18 @@
package com.liferay.portlet;
+import com.liferay.portal.kernel.io.unsync.UnsyncStringWriter;
import com.liferay.portal.kernel.template.Template;
import com.liferay.portal.kernel.template.TemplateConstants;
import com.liferay.portal.kernel.template.TemplateManagerUtil;
import com.liferay.portal.kernel.template.TemplateResource;
import com.liferay.portal.kernel.template.TemplateResourceLoaderUtil;
View AnnouncementsEntryServiceUtil.class.bytecode
1 2 3 4 5 6 7 8 9 10
Classfile /home/rotty/workspace/portal-master/portal-service/classes/com/liferay/portlet/announcements/service/AnnouncementsEntryServiceUtil.class
Last modified Aug 18, 2014; size 3824 bytes
MD5 checksum 8f10db4049ef8b7a0be911af0c81ec5c
Compiled from "AnnouncementsEntryServiceUtil.java"
public class com.liferay.portlet.announcements.service.AnnouncementsEntryServiceUtil
SourceFile: "AnnouncementsEntryServiceUtil.java"
RuntimeInvisibleAnnotations:
0: #108()
minor version: 0
major version: 50
View server.jspf.diff
1 2 3 4 5 6 7 8 9 10
@@ -371,31 +371,10 @@ serverURL.setParameter("tabs3", tabs3);
}
%>
<liferay-ui:search-iterator searchContainer="<%= searchContainer %>" />
</c:when>
- <c:when test='<%= tabs2.equals("captcha") %>'>
- <liferay-ui:error key="reCaptchaPrivateKey" message="the-recaptcha-private-key-is-not-valid" />
- <liferay-ui:error key="reCaptchaPublicKey" message="the-recaptcha-public-key-is-not-valid" />
-
Something went wrong with that request. Please try again.