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

Commit add0bb52 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "accounts: resolve error-prone warnings"

parents a45d15bf c7770d6e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -53,6 +53,7 @@ import java.io.IOException;
                AccountManager.AUTHENTICATOR_ATTRIBUTES_NAME, sSerializer);
    }

    @Override
    public AuthenticatorDescription parseServiceAttributes(Resources res,
            String packageName, AttributeSet attrs) {
        TypedArray sa = res.obtainAttributes(attrs,
@@ -81,11 +82,13 @@ import java.io.IOException;
    }

    private static class MySerializer implements XmlSerializerAndParser<AuthenticatorDescription> {
        @Override
        public void writeAsXml(AuthenticatorDescription item, XmlSerializer out)
                throws IOException {
            out.attribute(null, "type", item.type);
        }

        @Override
        public AuthenticatorDescription createFromXml(XmlPullParser parser)
                throws IOException, XmlPullParserException {
            return AuthenticatorDescription.newKey(parser.getAttributeValue(null, "type"));
+2 −1
Original line number Diff line number Diff line
@@ -4944,6 +4944,7 @@ public class AccountManagerService
                this.userDebugDbInsertionPoint = userDebugDbInsertionPoint;
            }

            @Override
            public void run() {
                SQLiteStatement logStatement = userAccount.statementForLogging;
                logStatement.bindLong(1, accountId);
@@ -6060,7 +6061,7 @@ public class AccountManagerService
        }
    }

    private class NotificationId {
    private static class NotificationId {
        final String mTag;
        private final int mId;

+1 −0
Original line number Diff line number Diff line
@@ -1321,6 +1321,7 @@ class AccountsDb implements AutoCloseable {
        }
    }

    @Override
    public void close() {
        mDeDatabase.close();
    }