Skip to content

Commit 2d8fdf9

Browse files
committed
initalized variables as null, comment out unused variables
1 parent fa79615 commit 2d8fdf9

30 files changed

+89
-89
lines changed

Examples/ServiceExamples/Scripts/ExampleAlchemyDataNews.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727

2828
public class ExampleAlchemyDataNews : MonoBehaviour
2929
{
30-
private string _apikey;
31-
private string _url;
32-
private fsSerializer _serializer = new fsSerializer();
30+
private string _apikey = null;
31+
private string _url = null;
32+
//private fsSerializer _serializer = new fsSerializer();
3333

34-
private AlchemyAPI _alchemyAPI;
34+
private AlchemyAPI _alchemyAPI = null;
3535

3636
private bool _getNewsTested = false;
3737

Examples/ServiceExamples/Scripts/ExampleAlchemyLanguage.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626

2727
public class ExampleAlchemyLanguage : MonoBehaviour
2828
{
29-
private string _apikey;
30-
private string _url;
31-
private fsSerializer _serializer = new fsSerializer();
29+
private string _apikey = null;
30+
private string _url = null;
31+
//private fsSerializer _serializer = new fsSerializer();
3232

3333
private AlchemyAPI _alchemyAPI;
3434

Examples/ServiceExamples/Scripts/ExampleConversation.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727

2828
public class ExampleConversation : MonoBehaviour
2929
{
30-
private string _username;
31-
private string _password;
32-
private string _url;
33-
private string _workspaceId;
30+
private string _username = null;
31+
private string _password = null;
32+
private string _url = null;
33+
private string _workspaceId = null;
3434
//private string _token = "<authentication-token>";
3535

3636
private Conversation _conversation;

Examples/ServiceExamples/Scripts/ExampleDiscoveryV1.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424

2525
public class ExampleDiscoveryV1 : MonoBehaviour
2626
{
27-
private string _username;
28-
private string _password;
29-
private string _url;
30-
private fsSerializer _serializer = new fsSerializer();
27+
private string _username = null;
28+
private string _password = null;
29+
private string _url = null;
30+
//private fsSerializer _serializer = new fsSerializer();
3131
//private string _token = "<authentication-token>";
3232

3333
private Discovery _discovery;

Examples/ServiceExamples/Scripts/ExampleDocumentConversion.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
public class ExampleDocumentConversion : MonoBehaviour
2828
{
2929
private DocumentConversion _documentConversion;
30-
private string _username;
31-
private string _password;
32-
private string _url;
33-
private fsSerializer _serializer = new fsSerializer();
30+
private string _username = null;
31+
private string _password = null;
32+
private string _url = null;
33+
//private fsSerializer _serializer = new fsSerializer();
3434
//private string _token = "<authentication-token>";
3535

3636
private string _examplePath;

Examples/ServiceExamples/Scripts/ExampleGetToken.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626

2727
public class ExampleGetToken : MonoBehaviour
2828
{
29-
private string _username;
30-
private string _password;
31-
private string _url;
29+
private string _username = null;
30+
private string _password = null;
31+
private string _url = null;
3232
private string _workspaceId;
3333
private fsSerializer _serializer = new fsSerializer();
3434

Examples/ServiceExamples/Scripts/ExampleLanguageTranslator.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ public class ExampleLanguageTranslator : MonoBehaviour
2828
{
2929
private string _pharseToTranslate = "Hello, welcome to IBM Watson!";
3030
private string _pharseToIdentify = "Hola, donde esta la bibliteca?";
31-
private string _username;
32-
private string _password;
33-
private string _url;
31+
private string _username = null;
32+
private string _password = null;
33+
private string _url = null;
3434
//private string _token = "<authentication-token>";
35-
private fsSerializer _serializer = new fsSerializer();
35+
//private fsSerializer _serializer = new fsSerializer();
3636

3737
private LanguageTranslator _languageTranslator;
3838
private string _baseModelName = "en-es";

Examples/ServiceExamples/Scripts/ExampleNaturalLanguageClassifier.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232

3333
public class ExampleNaturalLanguageClassifier : MonoBehaviour
3434
{
35-
private string _username;
36-
private string _password;
37-
private string _url;
38-
private fsSerializer _serializer = new fsSerializer();
35+
private string _username = null;
36+
private string _password = null;
37+
private string _url = null;
38+
//private fsSerializer _serializer = new fsSerializer();
3939
//private string _token = "<authentication-token>";
4040

4141
private NaturalLanguageClassifier naturalLanguageClassifier;

Examples/ServiceExamples/Scripts/ExampleNaturalLanguageUnderstandingV1.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626

2727
public class ExampleNaturalLanguageUnderstandingV1 : MonoBehaviour
2828
{
29-
private string _username;
30-
private string _password;
31-
private string _url;
29+
private string _username = null;
30+
private string _password = null;
31+
private string _url = null;
3232
private fsSerializer _serializer = new fsSerializer();
3333
//private string _token = "<authentication-token>";
3434

Examples/ServiceExamples/Scripts/ExamplePersonalityInsightsV3.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626

2727
public class ExamplePersonalityInsightsV3 : MonoBehaviour
2828
{
29-
private string _username;
30-
private string _password;
31-
private string _url;
32-
private fsSerializer _serializer = new fsSerializer();
29+
private string _username = null;
30+
private string _password = null;
31+
private string _url = null;
32+
//private fsSerializer _serializer = new fsSerializer();
3333

3434
private PersonalityInsights _personalityInsights;
3535
private string _personalityInsightsVersionDate = "2017-05-26";

Examples/ServiceExamples/Scripts/ExampleRetrieveAndRank.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929

3030
public class ExampleRetrieveAndRank : MonoBehaviour
3131
{
32-
private string _username;
33-
private string _password;
34-
private string _url;
35-
private fsSerializer _serializer = new fsSerializer();
32+
private string _username = null;
33+
private string _password = null;
34+
private string _url = null;
35+
//private fsSerializer _serializer = new fsSerializer();
3636
//private string _token = "<authentication-token>";
3737

3838
private RetrieveAndRank _retrieveAndRank;

Examples/ServiceExamples/Scripts/ExampleSpeechToText.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727

2828
public class ExampleSpeechToText : MonoBehaviour
2929
{
30-
private string _username;
31-
private string _password;
32-
private string _url;
33-
private fsSerializer _serializer = new fsSerializer();
30+
private string _username = null;
31+
private string _password = null;
32+
private string _url = null;
33+
//private fsSerializer _serializer = new fsSerializer();
3434
//private string _token = "<authentication-token>";
3535

3636
private AudioClip _audioClip;

Examples/ServiceExamples/Scripts/ExampleStreaming.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828

2929
public class ExampleStreaming : MonoBehaviour
3030
{
31-
private string _username;
32-
private string _password;
33-
private string _url;
34-
private fsSerializer _serializer = new fsSerializer();
31+
private string _username = null;
32+
private string _password = null;
33+
private string _url = null;
34+
//private fsSerializer _serializer = new fsSerializer();
3535
//private string _token = "<authentication-token>";
3636

3737
private int _recordingRoutine = 0;

Examples/ServiceExamples/Scripts/ExampleTextToSpeech.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626

2727
public class ExampleTextToSpeech : MonoBehaviour
2828
{
29-
private string _username;
30-
private string _password;
31-
private string _url;
32-
private fsSerializer _serializer = new fsSerializer();
29+
private string _username = null;
30+
private string _password = null;
31+
private string _url = null;
32+
//private fsSerializer _serializer = new fsSerializer();
3333
//private string _token = "<authentication-token>";
3434

3535
TextToSpeech _textToSpeech;

Examples/ServiceExamples/Scripts/ExampleToneAnalyzer.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626

2727
public class ExampleToneAnalyzer : MonoBehaviour
2828
{
29-
private string _username;
30-
private string _password;
31-
private string _url;
32-
private fsSerializer _serializer = new fsSerializer();
29+
private string _username = null;
30+
private string _password = null;
31+
private string _url = null;
32+
//private fsSerializer _serializer = new fsSerializer();
3333
//private string _token = "<authentication-token>";
3434

3535
private ToneAnalyzer _toneAnalyzer;

Examples/ServiceExamples/Scripts/ExampleTradeoffAnalytics.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727

2828
public class ExampleTradeoffAnalytics : MonoBehaviour
2929
{
30-
private string _username;
31-
private string _password;
32-
private string _url;
33-
private fsSerializer _serializer = new fsSerializer();
30+
private string _username = null;
31+
private string _password = null;
32+
private string _url = null;
33+
//private fsSerializer _serializer = new fsSerializer();
3434
//private string _token = "<authentication-token>";
3535

3636
TradeoffAnalytics _tradeoffAnalytics;

Examples/ServiceExamples/Scripts/ExampleVisualRecognition.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131

3232
public class ExampleVisualRecognition : MonoBehaviour
3333
{
34-
private string _apikey;
35-
private string _url;
36-
private fsSerializer _serializer = new fsSerializer();
34+
private string _apikey = null;
35+
private string _url = null;
36+
//private fsSerializer _serializer = new fsSerializer();
3737

3838
private VisualRecognition _visualRecognition;
3939
private string _visualRecognitionVersionDate = "2016-05-20";

Scripts/UnitTests/TestConversation.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ namespace IBM.Watson.DeveloperCloud.UnitTests
2929
{
3030
public class TestConversation : UnitTest
3131
{
32-
private string _username;
33-
private string _password;
32+
private string _username = null;
33+
private string _password = null;
3434
private string _workspaceId;
3535
//private string _token = "<authentication-token>";
3636

Scripts/UnitTests/TestDiscovery.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ namespace IBM.Watson.DeveloperCloud.UnitTests
2727
{
2828
public class TestDiscovery : UnitTest
2929
{
30-
private string _username;
31-
private string _password;
30+
private string _username = null;
31+
private string _password = null;
3232
private fsSerializer _serializer = new fsSerializer();
3333
//private string _token = "<authentication-token>";
3434

Scripts/UnitTests/TestDocumentConversion.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ namespace IBM.Watson.DeveloperCloud.UnitTests
2929
public class TestDocumentConversion : UnitTest
3030
{
3131
private DocumentConversion _documentConversion;
32-
private string _username;
33-
private string _password;
32+
private string _username = null;
33+
private string _password = null;
3434
private fsSerializer _serializer = new fsSerializer();
3535
//private string _token = "<authentication-token>";
3636

Scripts/UnitTests/TestLanguageTranslator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ namespace IBM.Watson.DeveloperCloud.UnitTests
2929
public class TestLanguageTranslator : UnitTest
3030
{
3131
private string _pharseToTranslate = "Hello, welcome to IBM Watson!";
32-
private string _username;
33-
private string _password;
32+
private string _username = null;
33+
private string _password = null;
3434
//private string _token = "<authentication-token>";
3535
private fsSerializer _serializer = new fsSerializer();
3636

Scripts/UnitTests/TestNaturalLanguageClassifier.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ namespace IBM.Watson.DeveloperCloud.UnitTests
3434
{
3535
public class TestNaturalLanguageClassifier : UnitTest
3636
{
37-
private string _username;
38-
private string _password;
37+
private string _username = null;
38+
private string _password = null;
3939
private fsSerializer _serializer = new fsSerializer();
4040
//private string _token = "<authentication-token>";
4141

Scripts/UnitTests/TestNaturalLanguageUnderstanding.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ namespace IBM.Watson.DeveloperCloud.UnitTests
2727
{
2828
public class TestNaturalLanguageUnderstanding : UnitTest
2929
{
30-
private string _username;
31-
private string _password;
30+
private string _username = null;
31+
private string _password = null;
3232
private fsSerializer _serializer = new fsSerializer();
3333
//private string _token = "<authentication-token>";
3434

Scripts/UnitTests/TestPersonalityInsightsV3.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ namespace IBM.Watson.DeveloperCloud.UnitTests
3030

3131
public class TestPersonalityInsightsV3 : UnitTest
3232
{
33-
private string _username;
34-
private string _password;
33+
private string _username = null;
34+
private string _password = null;
3535
private fsSerializer _serializer = new fsSerializer();
3636

3737
private PersonalityInsights _personalityInsights;

Scripts/UnitTests/TestRetrieveAndRank.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ namespace IBM.Watson.DeveloperCloud.UnitTests
3131
{
3232
public class TestRetrieveAndRank : UnitTest
3333
{
34-
private string _username;
35-
private string _password;
34+
private string _username = null;
35+
private string _password = null;
3636
private fsSerializer _serializer = new fsSerializer();
3737
//private string _token = "<authentication-token>";
3838

Scripts/UnitTests/TestSpeechToText.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ namespace IBM.Watson.DeveloperCloud.UnitTests
3030
{
3131
public class TestSpeechToText : UnitTest
3232
{
33-
private string _username;
34-
private string _password;
33+
private string _username = null;
34+
private string _password = null;
3535
private fsSerializer _serializer = new fsSerializer();
3636
//private string _token = "<authentication-token>";
3737

Scripts/UnitTests/TestTextToSpeech.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ namespace IBM.Watson.DeveloperCloud.UnitTests
2828
{
2929
public class TestTextToSpeech : UnitTest
3030
{
31-
private string _username;
32-
private string _password;
31+
private string _username = null;
32+
private string _password = null;
3333
private fsSerializer _serializer = new fsSerializer();
3434
//private string _token = "<authentication-token>";
3535

Scripts/UnitTests/TestToneAnalyzer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ namespace IBM.Watson.DeveloperCloud.UnitTests
2727
{
2828
public class TestToneAnalyzer : UnitTest
2929
{
30-
private string _username;
31-
private string _password;
30+
private string _username = null;
31+
private string _password = null;
3232
private fsSerializer _serializer = new fsSerializer();
3333
//private string _token = "<authentication-token>";
3434

Scripts/UnitTests/TestTradeoffAnalytics.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ namespace IBM.Watson.DeveloperCloud.UnitTests
2929
{
3030
public class TestTradeoffAnalytics : UnitTest
3131
{
32-
private string _username;
33-
private string _password;
32+
private string _username = null;
33+
private string _password = null;
3434
private fsSerializer _serializer = new fsSerializer();
3535
//private string _token = "<authentication-token>";
3636

ThirdParty/WebSocketSharp/Net/HttpBasicIdentity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public class HttpBasicIdentity : GenericIdentity
4949
{
5050
#region Private Fields
5151

52-
private string _password;
52+
private string _password = null;
5353

5454
#endregion
5555

0 commit comments

Comments
 (0)