« first day (4107 days earlier)      last day (820 days later) » 

12:00 AM
"The great question... which I have not been able to answer... is, `What does woman want?'" -- Sigmund Freud (source)
 
 
4 hours later…
3:34 AM
dreams of electric sheep
 
 
6 hours later…
9:34 AM
yawns loudly
 
10:09 AM
Hi,
is it good to write generic code in this way,
public Object getJsonStringToDTO(String dTOJson, Class<?> classType) {
Object intentDto = null;
try {
intentDto = Obj.readValue(dTOJson, classType);
} catch (IOException e) {
LOGGER.error("Unexpected error while converting intent config json to intent config dto:", e);
}
return intentDto;
}

Here I am trying to take any class type and its json in string form and trying to convert it into my DTO type object and return
 
hi guyst
guys I have a question
 
I have so many questions
Why are we here? Why aren't more people learning to code? Why do we fear the unknown? How deep is the ego?
 
I use jboss to start my server. The problem is when start my debug with eclipse, when I come to a jsp, it take a jsp that is located to /build folder.How can I this? I need to take only file in /src
anyone can help me?
 
The files in /build are the compiled /src files
 
 
1 hour later…
11:20 AM
@ANUPSAJJAN uhm... no
you dont use type information, you should be having a generic type that would match the result to the classType
you also swallow without reason and without information, you should not catch any exception here
this function should be
public <T> T getJsonStringToDto(String dtoJson, Class<T> classType) {
	return Obj.readValue(dtoJson, classType);
}
 
 
6 hours later…
5:24 PM
fights crime
 
 
6 hours later…
11:24 PM
fights crime
 

« first day (4107 days earlier)      last day (820 days later) »