Skip to content

Commit b5e0deb

Browse files
authored
Merge pull request #214 from microsoftgraph/bugfix/buildrequest-nonnull
fixes nullabiity annotations for buildRequest methods
2 parents 1a212de + 7884517 commit b5e0deb

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ mavenGroupId = com.microsoft.graph
2525
mavenArtifactId = microsoft-graph-core
2626
mavenMajorVersion = 2
2727
mavenMinorVersion = 0
28-
mavenPatchVersion = 2
28+
mavenPatchVersion = 3
2929
mavenArtifactSuffix =
3030

3131
#These values are used to run functional tests

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ repositories {
2020
2121
dependencies {
2222
// Include the sdk as a dependency
23-
implementation 'com.microsoft.graph:microsoft-graph-core:2.0.2'
23+
implementation 'com.microsoft.graph:microsoft-graph-core:2.0.3'
2424
// This dependency is only needed if you are using the TokenCrendentialAuthProvider
2525
implementation 'com.azure:azure-identity:1.2.5'
2626
}
@@ -35,7 +35,7 @@ Add the dependency in `dependencies` in pom.xml
3535
<!-- Include the sdk as a dependency -->
3636
<groupId>com.microsoft.graph</groupId>
3737
<artifactId>microsoft-graph-core</artifactId>
38-
<version>2.0.2</version>
38+
<version>2.0.3</version>
3939
<!-- This dependency is only needed if you are using the TokenCrendentialAuthProvider -->
4040
<groupId>com.azure</groupId>
4141
<artifactId>azure-identity</artifactId>

src/main/java/com/microsoft/graph/http/BaseCollectionRequestBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public BaseCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull f
4646
* @param requestOptions the options for this request
4747
* @return the IUserRequest instance
4848
*/
49-
@Nullable
49+
@Nonnull
5050
public T5 buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) {
5151
return buildRequest(getOptions(requestOptions));
5252
}
@@ -57,7 +57,7 @@ public T5 buildRequest(@Nullable final com.microsoft.graph.options.Option... req
5757
* @param requestOptions the options for this request
5858
* @return the IUserRequest instance
5959
*/
60-
@Nullable
60+
@Nonnull
6161
public T5 buildRequest(@Nullable final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) {
6262
try {
6363
return collRequestClass.getConstructor(String.class, IBaseClient.class, java.util.List.class)

src/main/java/com/microsoft/graph/http/BaseReferenceRequestBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public BaseReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull fi
5757
* @param requestOptions the options for this request
5858
* @return The ReferenceRequest instance
5959
*/
60-
@Nullable
60+
@Nonnull
6161
public T2 buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) {
6262
return buildRequest(getOptions(requestOptions));
6363
}
@@ -68,7 +68,7 @@ public T2 buildRequest(@Nullable final com.microsoft.graph.options.Option... req
6868
* @param requestOptions the options for this request
6969
* @return the ReferenceRequest instance
7070
*/
71-
@Nullable
71+
@Nonnull
7272
public T2 buildRequest(@Nullable final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) {
7373
try {
7474
return refRequestClass.getConstructor(String.class, IBaseClient.class, java.util.List.class)

src/main/java/com/microsoft/graph/http/BaseWithReferenceRequestBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public BaseWithReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnul
6363
* @param requestOptions the options for this request
6464
* @return the ReferenceRequest instance
6565
*/
66-
@Nullable
66+
@Nonnull
6767
public T2 buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) {
6868
return buildRequest(getOptions(requestOptions));
6969
}
@@ -74,7 +74,7 @@ public T2 buildRequest(@Nullable final com.microsoft.graph.options.Option... req
7474
* @param requestOptions the options for this request
7575
* @return the ReferenceRequest instance
7676
*/
77-
@Nullable
77+
@Nonnull
7878
public T2 buildRequest(@Nullable final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) {
7979
try {
8080
return wReferenceRequestClass.getConstructor(String.class, IBaseClient.class, java.util.List.class)

src/main/java/com/microsoft/graph/httpcore/TelemetryHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class TelemetryHandler implements Interceptor{
2525
/**
2626
* Current SDK version
2727
*/
28-
public static final String VERSION = "v2.0.2";
28+
public static final String VERSION = "v2.0.3";
2929
/**
3030
* Verion prefix
3131
*/

0 commit comments

Comments
 (0)