Skip to content

Commit

Permalink
Add nullability hints to platform.
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejwalkowiak committed Mar 18, 2021
1 parent 7f06429 commit 9485395
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sentry/src/main/java/io/sentry/SentryBaseEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public abstract class SentryBaseEvent {
* `groovy`, `java`, `javascript`, `native`, `node`, `objc`, `other`, `perl`, `php`, `python`,
* `ruby`
*/
private String platform;
private @Nullable String platform;

/** The captured Throwable */
protected transient @Nullable Throwable throwable;
Expand Down Expand Up @@ -191,11 +191,11 @@ public void setEnvironment(String environment) {
this.environment = environment;
}

public String getPlatform() {
public @Nullable String getPlatform() {
return platform;
}

public void setPlatform(String platform) {
public void setPlatform(final @Nullable String platform) {
this.platform = platform;
}
}

0 comments on commit 9485395

Please sign in to comment.