Skip to content

Commit

Permalink
Change Nonnull & Nullable annotation to jakarta.annotation (#488)
Browse files Browse the repository at this point in the history
  • Loading branch information
edsonjab authored Sep 16, 2024
1 parent a7641c5 commit 2253257
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 12 deletions.
5 changes: 5 additions & 0 deletions analytics-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@
<artifactId>guava</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
<version>2.1.1</version>
</dependency>

<dependency>
<groupId>junit</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import com.google.auto.value.AutoValue;
import com.segment.analytics.gson.AutoGson;
import jakarta.annotation.Nullable;
import java.util.Date;
import java.util.Map;
import javax.annotation.Nullable;

/**
* The group API call is how you associate an individual user with a group—be it a company,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import com.google.auto.value.AutoValue;
import com.segment.analytics.gson.AutoGson;
import jakarta.annotation.Nullable;
import java.util.Date;
import java.util.Map;
import javax.annotation.Nullable;

/**
* The identify call ties a customer and their actions to a recognizable ID and traits like their
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.segment.analytics.messages;

import jakarta.annotation.Nonnull;
import jakarta.annotation.Nullable;
import java.util.Date;
import java.util.Map;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;

/**
* Encapsulates properties common to all messages. Although not enforced by the compiler, either the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import com.google.auto.value.AutoValue;
import com.segment.analytics.gson.AutoGson;
import jakarta.annotation.Nullable;
import java.util.Date;
import java.util.Map;
import javax.annotation.Nullable;

/**
* The page call lets you record whenever a user sees a page of your website, along with any
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import com.google.auto.value.AutoValue;
import com.segment.analytics.gson.AutoGson;
import jakarta.annotation.Nullable;
import java.util.Date;
import java.util.Map;
import javax.annotation.Nullable;

/**
* The screen call lets you record whenever a user sees a screen, along with any properties about
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import com.google.auto.value.AutoValue;
import com.segment.analytics.gson.AutoGson;
import jakarta.annotation.Nullable;
import java.util.Date;
import java.util.Map;
import javax.annotation.Nullable;

/**
* The track API call is how you record any actions your users perform, along with any properties
Expand Down
5 changes: 5 additions & 0 deletions analytics/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
<version>2.1.1</version>
</dependency>
</dependencies>

<build>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.segment.analytics;

import jakarta.annotation.Nonnull;
import java.io.IOException;
import javax.annotation.Nonnull;
import okhttp3.Interceptor;
import okhttp3.Request;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.segment.analytics.internal;

import com.segment.analytics.messages.Message;
import jakarta.annotation.Nonnull;
import jakarta.annotation.Nullable;
import java.util.Date;
import java.util.Map;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;

class FlushMessage implements Message {
static final FlushMessage POISON = new FlushMessage();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.segment.analytics.internal;

import com.segment.analytics.messages.Message;
import jakarta.annotation.Nonnull;
import jakarta.annotation.Nullable;
import java.util.Date;
import java.util.Map;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;

class StopMessage implements Message {
static final StopMessage STOP = new StopMessage();
Expand Down

0 comments on commit 2253257

Please sign in to comment.