fixed typos

This commit is contained in:
iNPUTmice 2015-04-13 18:18:25 +02:00
parent 8486f47dd9
commit 62faa163f0
2 changed files with 2 additions and 2 deletions

View File

@ -432,7 +432,7 @@ public class Message extends AbstractEntity {
public boolean bodyContainsDownloadable() { public boolean bodyContainsDownloadable() {
/** /**
* there are a few cases where spaces result in an unwanted behavior, e.g. * 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. * or more than one image link in one message.
*/ */
if (body.contains(" ")) { if (body.contains(" ")) {

View File

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