fixed typos

iNPUTmice created

Change summary

src/main/java/eu/siacs/conversations/entities/Message.java | 2 +-
src/main/java/eu/siacs/conversations/utils/GeoHelper.java  | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

Detailed changes

src/main/java/eu/siacs/conversations/entities/Message.java 🔗

@@ -432,7 +432,7 @@ public class Message extends AbstractEntity {
 	public boolean bodyContainsDownloadable() {
 		/**
 		 * there are a few cases where spaces result in an unwanted behavior, e.g.
-		 * "http://example.com/image.jpg" text that will not be shown /abc.png"
+		 * "http://example.com/image.jpg text that will not be shown /abc.png"
 		 * or more than one image link in one message.
 		 */
 		if (body.contains(" ")) {

src/main/java/eu/siacs/conversations/utils/GeoHelper.java 🔗

@@ -20,7 +20,7 @@ public class GeoHelper {
 	}
 
 	public static ArrayList<Intent> createGeoIntentsFromMessage(Message message) {
-		final ArrayList<Intent> intents = new ArrayList();
+		final ArrayList<Intent> intents = new ArrayList<>();
 		Matcher matcher = GEO_URI.matcher(message.getBody());
 		if (!matcher.matches()) {
 			return intents;