Does the constructor in DeviceInfo.java correct?
See original GitHub issuein file DeviceInfo.java on line 41 there is a constructor like this:
public DeviceInfo(String deviceId, DeviceType deviceTypem, String notificationToken) {
this.deviceId = deviceId;
deviceType = deviceType;
notificationToken = notificationToken;
}
I think it must changed like this:
public DeviceInfo(String deviceId, DeviceType deviceType, String notificationToken) {
this.deviceId = deviceId;
this.deviceType = deviceType;
this.notificationToken = notificationToken;
}
Am I right?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Can Constructors Throw Exceptions in Java
The short answer is yes! Of course, properly implementing exceptions in your constructors is essential to getting the best results.
Read more >Constructor in Java
Default constructor is always without argument and provided by java compiler only when there is no existing constructor defined. Most of the ...
Read more >Constructors in Java
It can be used to set initial values for object attributes. In Java, a constructor is a block of codes similar to the...
Read more >Inheritance with constructor in Java
There is no constructor in the boxinfo class which takes four parameters. Furthermore,. Java compiler automatically insert super() constructor ...
Read more >DeviceInfo (Support SDK v1 - v1921)
public class DeviceInfo extends java.lang.Object ... Constructor and Description ... This will be the model name that is most recognisable by users.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sure I will try
Thanks. I will close the issue.