Questions tagged [unchecked]

An option "unchecked" used to turn off a javac compiler warnings about failing to use generics because it does not have enough type information to perform all type checks necessary to ensure type safety.

The term "unchecked" means that the javac compiler does not have enough type information to perform all type checks necessary to ensure type safety. The "unchecked" warning is disabled, by default, though the compiler gives a hint. To see all "unchecked" warnings, recompile with -Xlint:unchecked.

In JDK 1.5 an annotation was introduced called SuppressWarnings. It could be used to insert the annotation prior to a class or method telling which sort of warning you want suppressed.

A @SuppressWarning option unchecked used to turn off a javac compiler warnings about failing to use generics.

243 questions
0
votes
2 answers

All RuntimeException / Un-checked exception advocates, how would you handle this scenario?

Scenario: For a web-site which requires registration based on user id, the user id must be unique. Lets say a user has attempted to register with 'foo' user id, which already exists (with other required fields). Now, without using checked exceptions…
user1418717
  • 425
  • 2
  • 5
  • 13
-1
votes
3 answers

How to select unchecked input type checkbox with jquery

I have some a table in which i have rows with same id and other rows with other same id. Every row has a checkbox and i want to change the backgroundcolor of all the unchecked checkbox inside all rows with one id. this is what i try to do: function…
Jayyrus
  • 12,961
  • 41
  • 132
  • 214
-1
votes
1 answer

Javascript - checkbox reading value from array of objects

I need to get my checkboxes in todo list read from object in array if task is complete or not. And stay checked when they're complete and unchecked or not. const todos = [ { id: 1, title: 'Nakupit', description: 'Mlieko, syr, vajcia', …
-1
votes
1 answer

refresh when input in form is checked/unchecked

i have a form, with some inputs, those inputs are my filters for my listing:
JohnDoe
  • 91
  • 1
  • 12
-1
votes
1 answer

How to resolve unchecked call to compareTo(T) without using generics in Java

I would like to resolve this compiler warning: unchecked call to compareTo(T) as member of the raw type java.lang.Comparable My goal is to compare two java.lang.Object objects of unknown (background) type using following method. public static…
t4dohx
  • 675
  • 4
  • 24
-1
votes
2 answers

java, If Super class uses try/catch, Why can't the extending class override super class method with throws in method definition & Checked Exceptions

Prog 1: If we use Checked Exception the program fails to compile Here Student class has a method "tt" which throws an exception ClassNotFoundException which is a checked exception in java. The Test class extends Student class and overrides the…
Pranav Kumar
  • 83
  • 1
  • 8
-1
votes
2 answers

'Unchecked call' on ArrayList

I don't understand why I'm having this errors and how to solve them, on the following code in mine MainActivity file. I've searched on Google but I can't relate the solutions to mine code. I have also passed -Xlint:unchecked to javac, but can't get…
Aydin
  • 23
  • 1
  • 9
-1
votes
4 answers

How to checkbox checked always even after app relaunch until user uncheck it in android?

My question is simple i want to checked checkbox for always even app is closed and relaunch. This process should continue till user itself uncheck it. If user itself uncheck it then should be uncheck till user checked it again in android . Please…
MajidTiger
  • 17
  • 5
-1
votes
1 answer

How can we decide that custom exception should be a checked or unchecked exceptions

When defining a custom Exception in java, how can we decide that it should be a checked or unchecked exceptions
-1
votes
1 answer

No unchecked check box between two or more checked check boxes

I am in a process of developing a seat lay out for a class room. I have almost done it but stuck at one point. I have made it through check boxes now what i want to achieve is when user checked two or more than two check boxes then it should be in…
F Q
  • 97
  • 6
-1
votes
1 answer

What can i do to resolve a java warning during compilation?

I have a class DAG which extends another class ARCO. When I compile it, the prompt reports this warning in two lines: Note: .\ARCO.java uses unchecked or unsafe operations Recompile with -Xlint: unchecked for details What is the problem? (class…
James The Beard
  • 205
  • 4
  • 10
-1
votes
2 answers

Unchecked exception

I try to Create a custom unchecked exception class called InvalidDateException. This exception class must include a constructor that takes a String as an argument. But I wonder is my code is custom unchecked exception or not. class…
2h2h2h
  • 31
  • 7
-1
votes
1 answer

What causes unchecked warning in nested generic?

When I use a nested generic in a method, there is an unchecked warning. Why is that? package test; public class subc { public static void main(String[] args) { Integer aa[] = new Integer[10]; infunction(aa); // Not…
-1
votes
2 answers

Remove elements from List Box if checkbox gets unchecked in C#

I have an app in C# that needs two list boxes, but the contents of them are populated according to the state of some checkboxes. I have already figured out how to add content to the list box when the checkbox gets checked, but I want the app to…
ElPeta
  • 61
  • 1
  • 9
-1
votes
1 answer

Android: My CheckBox "checkAll" don't update the checkbox item of my ListView

My situation: an activity with a button, a checkbox checkAll and a custom ListView with image,name,surname and checkbox Problem: when i click on checkAll, the listView doesn't update the vale of each checkbox in the listView(whic have to be all…
Stefano C.
  • 1,033
  • 3
  • 13
  • 17
1 2 3
16
17