-
-
Notifications
You must be signed in to change notification settings - Fork 465
Add API to retrieve Android scope data #2814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
254554a
8b1b62b
6e3df8a
a461f7e
26ab966
74cbd44
e856a09
09953d7
2860fa1
5f44d96
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,10 +8,10 @@ | |
|
|
||
| public final class JsonObjectWriter implements ObjectWriter { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This class is public and not annotated as internal, technically a breaking change, was that intentional?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a required change in order to serialize protocol classes to either
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree its an oversight, but the class/interface was used in pretty much every class of the protocol.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Broke the C# binding somehow: https://github.com/getsentry/sentry-dotnet/pull/2498/files |
||
|
|
||
| private final JsonWriter jsonWriter; | ||
| private final JsonObjectSerializer jsonObjectSerializer; | ||
| private final @NotNull JsonWriter jsonWriter; | ||
| private final @NotNull JsonObjectSerializer jsonObjectSerializer; | ||
|
|
||
| public JsonObjectWriter(Writer out, int maxDepth) { | ||
| public JsonObjectWriter(final @NotNull Writer out, final int maxDepth) { | ||
| jsonWriter = new JsonWriter(out); | ||
| jsonObjectSerializer = new JsonObjectSerializer(maxDepth); | ||
| } | ||
|
|
@@ -41,13 +41,13 @@ public JsonObjectWriter endObject() throws IOException { | |
| } | ||
|
|
||
| @Override | ||
| public JsonObjectWriter name(String name) throws IOException { | ||
| public JsonObjectWriter name(final @NotNull String name) throws IOException { | ||
| jsonWriter.name(name); | ||
| return this; | ||
| } | ||
|
|
||
| @Override | ||
| public JsonObjectWriter value(String value) throws IOException { | ||
| public JsonObjectWriter value(final @Nullable String value) throws IOException { | ||
| jsonWriter.value(value); | ||
| return this; | ||
| } | ||
|
|
@@ -59,31 +59,31 @@ public JsonObjectWriter nullValue() throws IOException { | |
| } | ||
|
|
||
| @Override | ||
| public JsonObjectWriter value(boolean value) throws IOException { | ||
| public JsonObjectWriter value(final boolean value) throws IOException { | ||
| jsonWriter.value(value); | ||
| return this; | ||
| } | ||
|
|
||
| @Override | ||
| public JsonObjectWriter value(Boolean value) throws IOException { | ||
| public JsonObjectWriter value(final @Nullable Boolean value) throws IOException { | ||
| jsonWriter.value(value); | ||
| return this; | ||
| } | ||
|
|
||
| @Override | ||
| public JsonObjectWriter value(double value) throws IOException { | ||
| public JsonObjectWriter value(final double value) throws IOException { | ||
| jsonWriter.value(value); | ||
| return this; | ||
| } | ||
|
|
||
| @Override | ||
| public JsonObjectWriter value(long value) throws IOException { | ||
| public JsonObjectWriter value(final long value) throws IOException { | ||
| jsonWriter.value(value); | ||
| return this; | ||
| } | ||
|
|
||
| @Override | ||
| public JsonObjectWriter value(Number value) throws IOException { | ||
| public JsonObjectWriter value(final @Nullable Number value) throws IOException { | ||
| jsonWriter.value(value); | ||
| return this; | ||
| } | ||
|
|
@@ -97,13 +97,13 @@ public JsonObjectWriter value(Number value) throws IOException { | |
| * @return this writer. | ||
| */ | ||
| @Override | ||
| public JsonObjectWriter value(@NotNull ILogger logger, @Nullable Object object) | ||
| public JsonObjectWriter value(final @NotNull ILogger logger, final @Nullable Object object) | ||
| throws IOException { | ||
| jsonObjectSerializer.serialize(this, logger, object); | ||
| return this; | ||
| } | ||
|
|
||
| public void setIndent(@NotNull final String indent) { | ||
| public void setIndent(final @NotNull String indent) { | ||
| jsonWriter.setIndent(indent); | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.