Skip to content

Commit a678477

Browse files
committed
chore(deprecation): add deprecation messages
1 parent 031af0b commit a678477

File tree

4 files changed

+45
-0
lines changed

4 files changed

+45
-0
lines changed

compare-comply/src/main/java/com/ibm/watson/compare_comply/v1/CompareComply.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@
6868
* @see <a href="https://cloud.ibm.com/docs/compare-comply?topic=compare-comply-about">Compare
6969
* Comply</a>
7070
*/
71+
72+
/**
73+
* @deprecated On 30 November 2021, Compare and Comply will no longer be available.
74+
* For more information, see Compare and Comply Deprecation
75+
* (https://github.com/watson-developer-cloud/java-sdk#compare-and-comply-deprecation).
76+
*/
77+
@Deprecated
7178
public class CompareComply extends BaseService {
7279

7380
public static final String DEFAULT_SERVICE_NAME = "compare-comply";
@@ -129,6 +136,11 @@ public CompareComply(String version, String serviceName, Authenticator authentic
129136
setServiceUrl(DEFAULT_SERVICE_URL);
130137
setVersion(version);
131138
this.configureService(serviceName);
139+
140+
System.err.println(
141+
"On 30 November 2021, Compare and Comply will no longer be available."
142+
+ "\nFor more information, see Compare and Comply Deprecation "
143+
+ "(https://github.com/watson-developer-cloud/java-sdk#compare-and-comply-deprecation).");
132144
}
133145

134146
/**

personality-insights/src/main/java/com/ibm/watson/personality_insights/v3/PersonalityInsights.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,14 @@
6565
* @version v3
6666
* @see <a href="https://cloud.ibm.com/docs/personality-insights">Personality Insights</a>
6767
*/
68+
69+
/**
70+
* @deprecated On 1 December 2021, Personality Insights will no longer be available.
71+
* Consider migrating to Watson Natural Language Understanding.
72+
* For more information, see Personality Insights Deprecation
73+
* (https://github.com/watson-developer-cloud/java-sdk/tree/master#personality-insights-deprecation).
74+
*/
75+
@Deprecated
6876
public class PersonalityInsights extends BaseService {
6977

7078
public static final String DEFAULT_SERVICE_NAME = "personality_insights";
@@ -126,6 +134,11 @@ public PersonalityInsights(String version, String serviceName, Authenticator aut
126134
setServiceUrl(DEFAULT_SERVICE_URL);
127135
setVersion(version);
128136
this.configureService(serviceName);
137+
138+
System.err.println("On 1 December 2021, Personality Insights will no longer be available." +
139+
" Consider migrating to Watson Natural Language Understanding." +
140+
"\nFor more information, see Personality Insights Deprecation " +
141+
"(https://github.com/watson-developer-cloud/java-sdk/tree/master#personality-insights-deprecation).");
129142
}
130143

131144
/**

visual-recognition/src/main/java/com/ibm/watson/visual_recognition/v3/VisualRecognition.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@
5555
* @version v3
5656
* @see <a href="https://cloud.ibm.com/docs/visual-recognition">Visual Recognition</a>
5757
*/
58+
59+
/**
60+
* @deprecated On 1 December 2021, Visual Recognition will no longer be available. For more information, see Visual
61+
* Recognition Deprecation (https://github.com/watson-developer-cloud/java-sdk/tree/master#visual-recognition-deprecation).
62+
*/
63+
@Deprecated
5864
public class VisualRecognition extends BaseService {
5965

6066
public static final String DEFAULT_SERVICE_NAME = "visual_recognition";
@@ -116,6 +122,10 @@ public VisualRecognition(String version, String serviceName, Authenticator authe
116122
setServiceUrl(DEFAULT_SERVICE_URL);
117123
setVersion(version);
118124
this.configureService(serviceName);
125+
126+
System.err.println(
127+
"On 1 December 2021, Visual Recognition will no longer be available. For more information, see Visual\n" +
128+
"Recognition Deprecation (https://github.com/watson-developer-cloud/java-sdk/tree/master#visual-recognition-deprecation).");
119129
}
120130

121131
/**

visual-recognition/src/main/java/com/ibm/watson/visual_recognition/v4/VisualRecognition.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@
7979
* href="https://cloud.ibm.com/docs/visual-recognition?topic=visual-recognition-object-detection-overview">Visual
8080
* Recognition</a>
8181
*/
82+
83+
/**
84+
* @deprecated On 1 December 2021, Visual Recognition will no longer be available. For more information, see Visual
85+
* Recognition Deprecation (https://github.com/watson-developer-cloud/java-sdk/tree/master#visual-recognition-deprecation).
86+
*/
87+
@Deprecated
8288
public class VisualRecognition extends BaseService {
8389

8490
public static final String DEFAULT_SERVICE_NAME = "visual_recognition";
@@ -140,6 +146,10 @@ public VisualRecognition(String version, String serviceName, Authenticator authe
140146
setServiceUrl(DEFAULT_SERVICE_URL);
141147
setVersion(version);
142148
this.configureService(serviceName);
149+
150+
System.err.println(
151+
"On 1 December 2021, Visual Recognition will no longer be available. For more information, see Visual\n" +
152+
"Recognition Deprecation (https://github.com/watson-developer-cloud/java-sdk/tree/master#visual-recognition-deprecation).");
143153
}
144154

145155
/**

0 commit comments

Comments
 (0)