question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does the constructor in DeviceInfo.java correct?

See original GitHub issue

in 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:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mjzacommented, Jul 8, 2020

Sure I will try

0reactions
mjzacommented, Jul 9, 2020

Thanks. I will close the issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found