Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Acknowledge that the platform guarantees UTF-8 and UTF-16.

These log statements were dead code. That isn't much of a problem,
except that the 'e.getMessage()' that was being logged could be null,
and that would cause a real problem.

Change-Id: I8573bc687a7eda73782bd028e8ddc048a1954dc5
  • Loading branch information...
commit 40c5ccfffe1aca40c8e6b9155ce2f9918b53701a 1 parent f55df0e
Jesse Wilson authored
View
4 location/java/com/android/internal/location/GpsNetInitiatedHandler.java
@@ -325,7 +325,7 @@ static String decodeUTF8String(byte[] input)
}
catch (UnsupportedEncodingException e)
{
- Log.e(TAG, e.getMessage());
+ throw new AssertionError();
}
return decoded;
}
@@ -338,7 +338,7 @@ static String decodeUCS2String(byte[] input)
}
catch (UnsupportedEncodingException e)
{
- Log.e(TAG, e.getMessage());
+ throw new AssertionError();
}
return decoded;
}
Please sign in to comment.
Something went wrong with that request. Please try again.