Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 921e5f72 authored by Daisuke Miyakawa's avatar Daisuke Miyakawa
Browse files

Modify comments.

Bug: 2576594
Change-Id: I7d38bd4c738befddeb4e7ce14ac84032fb764d9d
parent 9fb4ace5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -366,11 +366,11 @@ import java.util.Map;
    }

    /**
     * Return half-width version of that character if possible. Return null if not possible
     * Returns half-width version of that character if possible. Returns null if not possible
     * @param ch input character
     * @return CharSequence object if the mapping for ch exists. Return null otherwise.
     */
    public static String tryGetHalfWidthText(char ch) {
    public static String tryGetHalfWidthText(final char ch) {
        if (sHalfWidthMap.containsKey(ch)) {
            return sHalfWidthMap.get(ch);
        } else {
+2 −1
Original line number Diff line number Diff line
@@ -62,7 +62,8 @@ import java.util.Set;
 *     .appendNotes(contentValuesListMap.get(Note.CONTENT_ITEM_TYPE))
 *     .appendEvents(contentValuesListMap.get(Event.CONTENT_ITEM_TYPE))
 *     .appendIms(contentValuesListMap.get(Im.CONTENT_ITEM_TYPE))
 *     .appendRelation(contentValuesListMap.get(Relation.CONTENT_ITEM_TYPE)); </pre>
 *     .appendRelation(contentValuesListMap.get(Relation.CONTENT_ITEM_TYPE));
 * return builder.toString();</pre>
 */
public class VCardBuilder {
    private static final String LOG_TAG = "VCardBuilder";
+236 −142

File changed.

Preview size limit exceeded, changes collapsed.

+5 −5
Original line number Diff line number Diff line
@@ -92,8 +92,8 @@ public class VCardParser_V30 extends VCardParser_V21 {
        if (!(sAcceptablePropsWithParam.contains(propertyName) ||
                acceptablePropsWithoutParam.contains(propertyName) ||
                propertyName.startsWith("X-")) &&
                !mUnknownTypeMap.contains(propertyName)) {
            mUnknownTypeMap.add(propertyName);
                !mUnknownTypeSet.contains(propertyName)) {
            mUnknownTypeSet.add(propertyName);
            Log.w(LOG_TAG, "Property name unsupported by vCard 3.0: " + propertyName);
        }
        return true;
@@ -248,13 +248,13 @@ public class VCardParser_V30 extends VCardParser_V21 {
    @Override
    protected void handleType(String ptypevalues) {
        String[] ptypeArray = ptypevalues.split(",");
        mBuilder.propertyParamType("TYPE");
        mInterpreter.propertyParamType("TYPE");
        for (String value : ptypeArray) {
            int length = value.length();
            if (length >= 2 && value.startsWith("\"") && value.endsWith("\"")) {
                mBuilder.propertyParamValue(value.substring(1, value.length() - 1));
                mInterpreter.propertyParamValue(value.substring(1, value.length() - 1));
            } else {
                mBuilder.propertyParamValue(value);
                mInterpreter.propertyParamValue(value);
            }
        }
    }