Skip to content

Commit 7b125ff

Browse files
committed
Suppress obselete compiler warnings
1 parent f66efea commit 7b125ff

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/Nest/Cluster/ClusterAllocationExplain/ClusterAllocationExplainResponseJsonConverter.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ internal class ClusterAllocationExplainResponseJsonConverter : JsonConverter
1717

1818
public override bool CanConvert(Type objectType) => true;
1919

20+
#pragma warning disable 612, 618
2021
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
2122
{
2223
var o = JObject.Load(reader);
@@ -140,9 +141,9 @@ public override object ReadJson(JsonReader reader, Type objectType, object exist
140141
}
141142
}
142143
}
143-
144144
return response;
145145
}
146+
#pragma warning restore 612, 618
146147

147148
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
148149
{

src/Tests/Cluster/ClusterAllocationExplain/ClusterAllocationExplainApiTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
namespace Tests.Cluster.ClusterAllocationExplain
1111
{
12+
#pragma warning disable 612, 618
1213
public class ClusterAllocationExplainApiTests : ApiIntegrationTestBase<UnbalancedCluster, IClusterAllocationExplainResponse, IClusterAllocationExplainRequest, ClusterAllocationExplainDescriptor, ClusterAllocationExplainRequest>
1314
{
1415
public ClusterAllocationExplainApiTests(UnbalancedCluster cluster, EndpointUsage usage) : base(cluster, usage) { }
@@ -110,4 +111,5 @@ protected override void ExpectResponse(IClusterAllocationExplainResponse respons
110111
response.RebalanceExplanation.Should().NotBeNullOrEmpty();
111112
}
112113
}
114+
#pragma warning restore 612, 618
113115
}

src/Tests/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# mode either u (unit test), i (integration test) or m (mixed mode)
2-
mode: i
2+
mode: u
33
# the elasticsearch version that should be started
44
# Can be a snapshot version of sonatype or "latest" to get the latest snapshot of sonatype
55
elasticsearch_version: 5.2.0

0 commit comments

Comments
 (0)