Commit f73fc4d0 authored by Ravinder Pannala's avatar Ravinder Pannala

second commit

parent 859f5ca0
u
java:S1192"`Define a constant instead of duplicating this literal "Limit the n elements from list" 4 times.(x
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
N java:S106"9Replace this use of System.out or System.err by a logger.(
M java:S106"9Replace this use of System.out or System.err by a logger.(x
N java:S106"9Replace this use of System.out or System.err by a logger.(
N java:S106"9Replace this use of System.out or System.err by a logger.(
N java:S106"9Replace this use of System.out or System.err by a logger.(򄀠
J
java:S1128"4Remove this unused import 'java.util.stream.Stream'.(
\ No newline at end of file
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
N java:S106"9Replace this use of System.out or System.err by a logger.(
N java:S106"9Replace this use of System.out or System.err by a logger.(ڦ
v
java:S4276"[Refactor this code to use the more specialised Functional Interface 'UnaryOperator<String>'(ާ
J
java:S1611"/Remove the parentheses around the "s" parameter(ާ
n
java:S1602"SRemove useless curly braces around statement and then remove useless return keyword(ާ
S java:S106"9Replace this use of System.out or System.err by a logger.(
N java:S106"9Replace this use of System.out or System.err by a logger.(
S java:S106$"9Replace this use of System.out or System.err by a logger.(ކ
N java:S106'"9Replace this use of System.out or System.err by a logger.(
J
java:S1128 "4Remove this unused import 'java.util.stream.Stream'.(
\ No newline at end of file
t java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
J
java:S1611 "/Remove the parentheses around the "s" parameter(Φ
[
java:S1612 "@Replace this lambda with method reference 'String::toUpperCase'.(Φ
S java:S106 "9Replace this use of System.out or System.err by a logger.(ő
E
java:S1611"/Remove the parentheses around the "a" parameter(
W
java:S1612"AReplace this lambda with method reference 'Math::decrementExact'.(
S java:S106"9Replace this use of System.out or System.err by a logger.(⪴
J
java:S1611"/Remove the parentheses around the "b" parameter(٭
Q
java:S1612"6Replace this lambda with method reference 'Math::abs'.(٭
N java:S106"9Replace this use of System.out or System.err by a logger.(
E
java:S1611"/Remove the parentheses around the "c" parameter(ݔ
W
java:S1612"AReplace this lambda with method reference 'Math::incrementExact'.(ݔ
S java:S106"9Replace this use of System.out or System.err by a logger.(ד
\ No newline at end of file
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
S java:S106"9Replace this use of System.out or System.err by a logger.(
A
java:S2201"+The return value of "collect" must be used.(
S java:S106"9Replace this use of System.out or System.err by a logger.(
J
java:S1128 "/Remove this unused import 'java.util.Optional'.(
S
java:S1128
"8Remove this unused import 'java.util.function.Consumer'.(̆
N
java:S1128 "8Remove this unused import 'java.util.function.Function'.(͞
P
java:S1128 ":Remove this unused import 'java.util.stream.DoubleStream'.(Щ
J
java:S1128"4Remove this unused import 'java.util.stream.Stream'.(
\ No newline at end of file
T
java:S3655""7Call "Optional#isPresent()" before accessing the value.(80
T
java:S3655"7Call "Optional#isPresent()" before accessing the value.(ҝ80
T
java:S3655"7Call "Optional#isPresent()" before accessing the value.(80
Z java:S106"9Replace this use of System.out or System.err by a logger.(80
Z java:S106"9Replace this use of System.out or System.err by a logger.(ə80
U java:S106"9Replace this use of System.out or System.err by a logger.(䓂80
T java:S106"9Replace this use of System.out or System.err by a logger.( 80
T java:S106#"9Replace this use of System.out or System.err by a logger.(y80
U java:S106&"9Replace this use of System.out or System.err by a logger.(80
U java:S106*"9Replace this use of System.out or System.err by a logger.(͡80
U java:S106."9Replace this use of System.out or System.err by a logger.(80
U java:S1062"9Replace this use of System.out or System.err by a logger.(80
U java:S1066"9Replace this use of System.out or System.err by a logger.(80
J
java:S22019"-The return value of "findFirst" must be used.(혗80
\ No newline at end of file
Q
java:S3655/"4Call "first.isPresent()" before accessing the value.(υ80
T
java:S3655)"7Call "Optional#isPresent()" before accessing the value.(80
T
java:S3655("7Call "Optional#isPresent()" before accessing the value.(80
Z java:S106 "9Replace this use of System.out or System.err by a logger.(80
Z java:S106"9Replace this use of System.out or System.err by a logger.(¨80
Z java:S106"9Replace this use of System.out or System.err by a logger.(80
U java:S106"9Replace this use of System.out or System.err by a logger.(׷80
Z java:S106"9Replace this use of System.out or System.err by a logger.(ڬ80
U java:S106%"9Replace this use of System.out or System.err by a logger.(80
U java:S106*"9Replace this use of System.out or System.err by a logger.(ӽ80
U java:S106/"9Replace this use of System.out or System.err by a logger.(υ80
U java:S1063"9Replace this use of System.out or System.err by a logger.(80
U java:S1067"9Replace this use of System.out or System.err by a logger.(򎶣8Ŗ0
\ No newline at end of file
E
java:S1066"/Merge this if statement with the enclosing one.(Œ™¶Á
N
java:S1854 "8Remove this useless assignment to local variable "list".(ŠŒÖ
S java:S106 "9Replace this use of System.out or System.err by a logger.(ã¿¢Ôùÿÿÿÿ
A
java:S1168"+Return an empty collection instead of null.(¥¹ï
?
java:S1197"*Move the array designators [] to the type.(§žìe
A
java:S1168"+Return an empty collection instead of null.(¥¹ï
S java:S106""9Replace this use of System.out or System.err by a logger.(ú“‹ºùÿÿÿÿ
\ No newline at end of file
z
java:S1488'"_Immediately return this expression instead of assigning it to the temporary variable "collect".(á­úÇÿÿÿÿÿ
z
java:S1488,"_Immediately return this expression instead of assigning it to the temporary variable "matches".(ðŸÀ°ýÿÿÿÿ
t java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(ºËîÜùÿÿÿÿ
S
java:S1854"=Remove this useless assignment to local variable "employees".(•ñªþ
D
java:S1481".Remove this unused "employees" local variable.(•ñªþ
V java:S125"<This block of commented-out lines of code should be removed.(’ÞÌëüÿÿÿÿ
n
java:S1602"SRemove useless curly braces around statement and then remove useless return keyword(»òðÌùÿÿÿÿ
n
java:S1602"SRemove useless curly braces around statement and then remove useless return keyword(ŽÇš¶ýÿÿÿÿ
i
java:S1602"SRemove useless curly braces around statement and then remove useless return keyword(Þ·æº
5
java:S2153"Remove the boxing of "s1".(¬þšÕùÿÿÿÿ
c
java:S2153"HRemove the boxing to "Double"; The argument is already of the same type.(¬þšÕùÿÿÿÿ
N java:S106"9Replace this use of System.out or System.err by a logger.(ÆÀûý
s
java:S42762"]Refactor this code to use the more specialised Functional Interface 'BinaryOperator<Integer>'(éÑÊý
N java:S1063"9Replace this use of System.out or System.err by a logger.(¨×¶´
x
java:S42765"]Refactor this code to use the more specialised Functional Interface 'BinaryOperator<Integer>'(ÜŽ¬ïÿÿÿÿÿ
N java:S1066"9Replace this use of System.out or System.err by a logger.(¥å©Š
r
java:S42768"\Refactor this code to use the more specialised Functional Interface 'BinaryOperator<String>'(ßâü
i
java:S16028"SRemove useless curly braces around statement and then remove useless return keyword(ßâü
N java:S106;"9Replace this use of System.out or System.err by a logger.(É߇€
s
java:S4276="]Refactor this code to use the more specialised Functional Interface 'BinaryOperator<Integer>'(êÞ¦—
i
java:S1602="SRemove useless curly braces around statement and then remove useless return keyword(êÞ¦—
S java:S106@"9Replace this use of System.out or System.err by a logger.(ëʺñùÿÿÿÿ
Z
java:S1068&"?Remove this unused "fetchEmployeesMatchingToKey" private field.(‹äÒâúÿÿÿÿ
\ No newline at end of file
v
java:S1488 "`Immediately return this expression instead of assigning it to the temporary variable "contains".(ÍØÄ¬
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(‚ïÎñ
W
java:S18546"<Remove this useless assignment to local variable "collect2".(˜Ç¼Úüÿÿÿÿ
Q
java:S1854*";Remove this useless assignment to local variable "collect".(‘ÙÞ–
S
java:S1854"8Remove this useless assignment to local variable "test".(úÕô¢ýÿÿÿÿ
P
java:S1854 "5Remove this useless assignment to local variable "p".(þ®æùÿÿÿÿÿ
A
java:S1481 "&Remove this unused "p" local variable.(þ®æùÿÿÿÿÿ
D
java:S1481")Remove this unused "test" local variable.(úÕô¢ýÿÿÿÿ
h
java:S4276"RRefactor this code to use the more specialised Functional Interface 'IntPredicate'(ÿŒ‹ß
Q java:S125"<This block of commented-out lines of code should be removed.(å·ôµ
V java:S125"<This block of commented-out lines of code should be removed.(À‚½…úÿÿÿÿ
h
java:S4276"RRefactor this code to use the more specialised Functional Interface 'IntPredicate'(Ü®¬
V java:S125"<This block of commented-out lines of code should be removed.( Ò¬õúÿÿÿÿ
N java:S106"9Replace this use of System.out or System.err by a logger.(²¯½©
J
java:S1611"4Remove the parentheses around the "string" parameter(”©¼Õ
S java:S106$"9Replace this use of System.out or System.err by a logger.(¤ä¡õýÿÿÿÿ
B
java:S1481*",Remove this unused "collect" local variable.(‘ÙÞ–
[
java:S1612,"@Replace this lambda with method reference 'System.out::println'.(ßÃÝ»ÿÿÿÿÿ
S java:S106,"9Replace this use of System.out or System.err by a logger.(ßÃÝ»ÿÿÿÿÿ
N java:S1061"9Replace this use of System.out or System.err by a logger.(·Þø«
H
java:S14816"-Remove this unused "collect2" local variable.(˜Ç¼Úüÿÿÿÿ
J
java:S1128"4Remove this unused import 'java.util.stream.Stream'.(ó÷Ž”
\ No newline at end of file
N java:S106"9Replace this use of System.out or System.err by a logger.(
P
java:S6397"5Replace this character class by the character itself.(
S java:S106"9Replace this use of System.out or System.err by a logger.(
N java:S106"9Replace this use of System.out or System.err by a logger.(
9
java:S1128"$Remove this unused import 'java.io'.(D
\ No newline at end of file
<
java:S1700"Rename field "singletonEx"(80
\ No newline at end of file
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
N java:S106 "9Replace this use of System.out or System.err by a logger.(ժ
M java:S106"9Replace this use of System.out or System.err by a logger.(H
n
java:S1602"SRemove useless curly braces around statement and then remove useless return keyword(
N java:S106"9Replace this use of System.out or System.err by a logger.(ۮ
\ No newline at end of file
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
N java:S106"9Replace this use of System.out or System.err by a logger.(ß
N java:S106""9Replace this use of System.out or System.err by a logger.(҈ś
N java:S106)"9Replace this use of System.out or System.err by a logger.(
N java:S106/"9Replace this use of System.out or System.err by a logger.(㢽
N
java:S1128"8Remove this unused import 'com.java8.features.Employee'.(
R
java:S1128"=Remove this unused import 'com.java8.features.EmployeeUtils'.(
S
java:S1128"=Remove this unused import 'com.java8.features.Utils.Student'.(
]
java:S1128"BRemove this unused import 'com.java8.features.Utils.StudentUtils'.(Ӽ
\ No newline at end of file
f
java:S1192"IDefine a constant instead of duplicating this literal "Ravinder" 3 times.(80
v java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(80
Q
java:S1611 "4Remove the parentheses around the "string" parameter(80
I
java:S1602 ",Remove useless curly braces around statement(80
Z java:S106 "9Replace this use of System.out or System.err by a logger.(ٿ80
s
java:S4276"QRefactor this code to use the more specialised Functional Interface 'IntConsumer'(п80
Q
java:S1611"/Remove the parentheses around the "i" parameter(п80
u
java:S1602"SRemove useless curly braces around statement and then remove useless return keyword(п80
Q
java:S1611"4Remove the parentheses around the "string" parameter(80
U java:S106"9Replace this use of System.out or System.err by a logger.(80
U java:S106"9Replace this use of System.out or System.err by a logger.(80
Z java:S106"9Replace this use of System.out or System.err by a logger.(80
]
java:S1612"@Replace this lambda with method reference 'System.out::println'.(Ӭ80
U java:S106"9Replace this use of System.out or System.err by a logger.(Ӭ80
U java:S106""9Replace this use of System.out or System.err by a logger.(80
U java:S106#"9Replace this use of System.out or System.err by a logger.(ǹ80
T
java:S1611&"2Remove the parentheses around the "name" parameter(Ռ80
N
java:S1602&",Remove useless curly braces around statement(Ռ80
U java:S106'"9Replace this use of System.out or System.err by a logger.(80
U java:S106)"9Replace this use of System.out or System.err by a logger.(ì80
N
java:S1602+",Remove useless curly braces around statement(80
T java:S106,"9Replace this use of System.out or System.err by a logger.(í)80
Z java:S106."9Replace this use of System.out or System.err by a logger.(ؓ80
Q
java:S16110"/Remove the parentheses around the "a" parameter(ى80
N
java:S16020",Remove useless curly braces around statement(ى80
b
java:S16120"@Replace this lambda with method reference 'System.out::println'.(ى80
Z java:S1061"9Replace this use of System.out or System.err by a logger.(樤80
Q
java:S16116"/Remove the parentheses around the "b" parameter(ݱ80
N
java:S16026",Remove useless curly braces around statement(ݱ80
b
java:S16126"@Replace this lambda with method reference 'System.out::println'.(ݱ80
Z java:S1067"9Replace this use of System.out or System.err by a logger.(80
Q
java:S1611<"/Remove the parentheses around the "c" parameter(ż80
N
java:S1602<",Remove useless curly braces around statement(ż80
b
java:S1612<"@Replace this lambda with method reference 'System.out::println'.(ż80
U java:S106="9Replace this use of System.out or System.err by a logger.(߇80
\ No newline at end of file
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
Q
java:S1854";Remove this useless assignment to local variable "collect".(
7
java:S3864"!Remove this use of "Stream.peek".(龕
<
java:S3864"!Remove this use of "Stream.peek".(
S java:S106"9Replace this use of System.out or System.err by a logger.(
N java:S106"9Replace this use of System.out or System.err by a logger.(龕
B
java:S1481",Remove this unused "collect" local variable.(
\ No newline at end of file
e
java:S1192
"JDefine a constant instead of duplicating this literal "developer" 8 times.(Ÿì¥Èüÿÿÿÿ
P
java:S1118":Add a private constructor to hide the implicit public one.(¯¥¸å
\ No newline at end of file
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
M
java:S3655"7Call "Optional#isPresent()" before accessing the value.(
R
java:S3655""7Call "Optional#isPresent()" before accessing the value.(͡
M
java:S3655"7Call "Optional#isPresent()" before accessing the value.(
S java:S106"9Replace this use of System.out or System.err by a logger.(
N java:S106"9Replace this use of System.out or System.err by a logger.(
S java:S106"9Replace this use of System.out or System.err by a logger.(
S java:S106#"9Replace this use of System.out or System.err by a logger.(
\ No newline at end of file
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(•é¥ß
\ No newline at end of file
J
java:S3740"/Provide the parametrized type for this generic.(
J
java:S3740"/Provide the parametrized type for this generic.(
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
p
java:S4276"URefactor this code to use the more specialised Functional Interface 'BooleanSupplier'(
l
java:S4276"QRefactor this code to use the more specialised Functional Interface 'IntSupplier'(
Y
java:S1612">Replace this lambda with method reference 'name::toLowerCase'.(
V
java:S1612";Replace this lambda with method reference 'ArrayList::new'.(
S java:S106"9Replace this use of System.out or System.err by a logger.(
S java:S106"9Replace this use of System.out or System.err by a logger.(׵
S java:S106"9Replace this use of System.out or System.err by a logger.(譇
S java:S106"9Replace this use of System.out or System.err by a logger.(˰
N java:S106"9Replace this use of System.out or System.err by a logger.(͂
N java:S106""9Replace this use of System.out or System.err by a logger.(
\ No newline at end of file
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
S java:S106"9Replace this use of System.out or System.err by a logger.(ؾ
N java:S106"9Replace this use of System.out or System.err by a logger.(ɟ
S java:S106"9Replace this use of System.out or System.err by a logger.(
M java:S106""9Replace this use of System.out or System.err by a logger.(
S java:S106%"9Replace this use of System.out or System.err by a logger.(
F
java:S1128"0Remove this unused import 'java.util.ArrayList'.(
S
java:S1128"8Remove this unused import 'java.util.function.Consumer'.(̆
J
java:S1128"4Remove this unused import 'java.util.stream.Stream'.(
\ No newline at end of file
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
N java:S106"9Replace this use of System.out or System.err by a logger.(
S java:S106"9Replace this use of System.out or System.err by a logger.(
S java:S106"9Replace this use of System.out or System.err by a logger.(Ι
M java:S106("9Replace this use of System.out or System.err by a logger.(A
S java:S106."9Replace this use of System.out or System.err by a logger.(
\ No newline at end of file
E
java:S1066""/Merge this if statement with the enclosing one.(
J
java:S1066#"/Merge this if statement with the enclosing one.(
h
java:S3776"RRefactor this method to reduce its Cognitive Complexity from 42 to the 15 allowed.(ǵ
S java:S106"9Replace this use of System.out or System.err by a logger.(ʓ
/
java:S2178"Correct this "&" to "&&".(߽
S java:S106("9Replace this use of System.out or System.err by a logger.(
S java:S1060"9Replace this use of System.out or System.err by a logger.(㿢
S java:S1066"9Replace this use of System.out or System.err by a logger.(
G
java:S1128"1Remove this unused import 'java.io.StringReader'.(֣
K
java:S1128"0Remove this unused import 'java.nio.CharBuffer'.(
N
java:S1128"3Remove this unused import 'java.util.StringJoiner'.(
S
java:S1128 "8Remove this unused import 'java.util.stream.Collectors'.(
\ No newline at end of file
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
E
java:S1611"/Remove the parentheses around the "i" parameter(
J
java:S1611"/Remove the parentheses around the "i" parameter(
[
java:S1612"@Replace this lambda with method reference 'System.out::println'.(
S java:S106"9Replace this use of System.out or System.err by a logger.(
F
java:S1128"0Remove this unused import 'java.util.ArrayList'.(
J
java:S1128"4Remove this unused import 'java.util.stream.Stream'.(
\ No newline at end of file
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
W
java:S1854$"<Remove this useless assignment to local variable "collect4".(
R
java:S1854"<Remove this useless assignment to local variable "collect1".(
R
java:S1854"7Remove this useless assignment to local variable "map".(
M
java:S1854"7Remove this useless assignment to local variable "set".(՜
P
java:S1854";Remove this useless assignment to local variable "collect".(3
A
java:S1481",Remove this unused "collect" local variable.(3
>
java:S1481"(Remove this unused "set" local variable.(՜
C
java:S1481"(Remove this unused "map" local variable.(
C
java:S1481"-Remove this unused "collect1" local variable.(
G
java:S1611"1Remove the parentheses around the "emp" parameter(
N java:S106"9Replace this use of System.out or System.err by a logger.(ϡ
S java:S106!"9Replace this use of System.out or System.err by a logger.(
H
java:S1481$"-Remove this unused "collect4" local variable.(
S java:S106*"9Replace this use of System.out or System.err by a logger.(ǭů
M java:S106/"9Replace this use of System.out or System.err by a logger.(ҿW
O
java:S1128"9Remove this unused import 'java.util.function.Predicate'.(͖
\ No newline at end of file
t java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
m
java:S4276 "WRefactor this code to use the more specialised Functional Interface 'IntBinaryOperator'(ү
X
java:S1612 "BReplace this lambda with method reference 'Comparable::compareTo'.(ү
N java:S106
"9Replace this use of System.out or System.err by a logger.(
m
java:S4276 "WRefactor this code to use the more specialised Functional Interface 'IntBinaryOperator'(Ƕ
X
java:S1612 "BReplace this lambda with method reference 'Comparable::compareTo'.(Ƕ
N java:S106 "9Replace this use of System.out or System.err by a logger.(ϲ
\ No newline at end of file
t java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(х
S java:S106"9Replace this use of System.out or System.err by a logger.(
N java:S106"9Replace this use of System.out or System.err by a logger.(
N
java:S3878("8Remove this array creation and simply pass the elements.(
S java:S106)"9Replace this use of System.out or System.err by a logger.(ۑ
N java:S1060"9Replace this use of System.out or System.err by a logger.(
\ No newline at end of file
b java:S101"MRename this class name to match the regular expression '^[A-Z][a-zA-Z0-9]*$'.(®¼¨ 
E
java:S1611"/Remove the parentheses around the "i" parameter(ª£Ûý
N java:S106"9Replace this use of System.out or System.err by a logger.(ª£Ûý
J
java:S1611"/Remove the parentheses around the "i" parameter(‘ê™õüÿÿÿÿ
S java:S106"9Replace this use of System.out or System.err by a logger.(‘ê™õüÿÿÿÿ
F
java:S1128"0Remove this unused import 'java.util.ArrayList'.(÷‰îƒ
\ No newline at end of file
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(‡±‚°
N java:S106"9Replace this use of System.out or System.err by a logger.(ìù’È
\ No newline at end of file
Z java:S106"9Replace this use of System.out or System.err by a logger.(80
U java:S106"9Replace this use of System.out or System.err by a logger.(80
H
java:S2201"+The return value of "collect" must be used.(80
Z java:S106"9Replace this use of System.out or System.err by a logger.(𛀇80
Z java:S106#"9Replace this use of System.out or System.err by a logger.(80
U java:S106'"9Replace this use of System.out or System.err by a logger.(ڱ80
Z java:S106+"9Replace this use of System.out or System.err by a logger.(μ80
] java:S125."<This block of commented-out lines of code should be removed.(Ϛ80
Y
java:S1128"7Remove this unused import 'java.util.stream.IntStream'.(ɽ80
Q
java:S1128"4Remove this unused import 'java.util.stream.Stream'.(80
\ No newline at end of file
S java:S106"9Replace this use of System.out or System.err by a logger.(
N java:S106"9Replace this use of System.out or System.err by a logger.(
\ No newline at end of file
6
java:S1659" Declare "s1" on a separate line.(
Q java:S125"<This block of commented-out lines of code should be removed.(͂
N java:S106 "9Replace this use of System.out or System.err by a logger.(
S java:S106 "9Replace this use of System.out or System.err by a logger.(
N java:S106"9Replace this use of System.out or System.err by a logger.(ۡ
S java:S106"9Replace this use of System.out or System.err by a logger.(أ
\ No newline at end of file
N java:S106
"9Replace this use of System.out or System.err by a logger.(ԝ
N java:S106 "9Replace this use of System.out or System.err by a logger.(Ζ
\ No newline at end of file
f java:S117
"QRename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(
N java:S106"9Replace this use of System.out or System.err by a logger.(ۿ
N java:S106"9Replace this use of System.out or System.err by a logger.(
\ No newline at end of file
t java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
M
java:S2589&"7Remove this expression which always evaluates to "true"(
T
java:S1854 "9Remove this useless assignment to local variable "empty".(
E
java:S1481 "*Remove this unused "empty" local variable.(
N java:S106"9Replace this use of System.out or System.err by a logger.(Ǵ
S java:S106"9Replace this use of System.out or System.err by a logger.(
S java:S106"9Replace this use of System.out or System.err by a logger.(
S java:S106"9Replace this use of System.out or System.err by a logger.(
Q java:S125!"<This block of commented-out lines of code should be removed.(
S java:S106'"9Replace this use of System.out or System.err by a logger.(
S java:S106-"9Replace this use of System.out or System.err by a logger.(
S java:S1060"9Replace this use of System.out or System.err by a logger.(
T
java:S34005"9Remove this method and declare a constant for this value.(ܧ͸
\ No newline at end of file
b
java:S1192"GDefine a constant instead of duplicating this literal "Female" 3 times.(
m
java:S1192"RDefine a constant instead of duplicating this literal "Software Engineer" 4 times.(
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
S java:S106"9Replace this use of System.out or System.err by a logger.(
S java:S106"9Replace this use of System.out or System.err by a logger.(ə
N java:S106$"9Replace this use of System.out or System.err by a logger.(
N java:S106*"9Replace this use of System.out or System.err by a logger.(
N java:S1061"9Replace this use of System.out or System.err by a logger.(
N java:S1067"9Replace this use of System.out or System.err by a logger.(
S java:S106="9Replace this use of System.out or System.err by a logger.(
S
java:S1128"=Remove this unused import 'com.java8.features.Utils.Student'.(
]
java:S1128"BRemove this unused import 'com.java8.features.Utils.StudentUtils'.(Ӽ
\ No newline at end of file
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
N java:S106 "9Replace this use of System.out or System.err by a logger.(֊
S java:S106"9Replace this use of System.out or System.err by a logger.(߹
S java:S106"9Replace this use of System.out or System.err by a logger.(
N java:S106"9Replace this use of System.out or System.err by a logger.(
F
java:S1128"0Remove this unused import 'java.util.ArrayList'.(
\ No newline at end of file
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
\
java:S1854"ARemove this useless assignment to local variable "integerStream".(
N java:S106"9Replace this use of System.out or System.err by a logger.(
M
java:S1481"2Remove this unused "integerStream" local variable.(
N java:S106"9Replace this use of System.out or System.err by a logger.(
N java:S106"9Replace this use of System.out or System.err by a logger.(ꎧ
S java:S106$"9Replace this use of System.out or System.err by a logger.(
N java:S106("9Replace this use of System.out or System.err by a logger.(
N java:S106-"9Replace this use of System.out or System.err by a logger.(ӫ
S java:S1066"9Replace this use of System.out or System.err by a logger.(
S java:S106:"9Replace this use of System.out or System.err by a logger.(
N java:S106="9Replace this use of System.out or System.err by a logger.(
H
java:S1128"-Remove this unused import 'java.util.Random'.(ɛ
\ No newline at end of file
u
java:S1488K"_Immediately return this expression instead of assigning it to the temporary variable "collect".(¥íß¿
o
java:S1488P"YImmediately return this expression instead of assigning it to the temporary variable "b".(¥™Í¦
q
java:S1104J"VMake biFunction a static final constant or non-public and provide accessors if needed.(¯õ«Êûÿÿÿÿ
k
java:S1104O"UMake predicate a static final constant or non-public and provide accessors if needed.(჻»
w
java:S1104T"\Make fullNameFunction a static final constant or non-public and provide accessors if needed.(“ÿåíûÿÿÿÿ
t java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(¨½Ë÷üÿÿÿÿ
L
java:S3655."7Call "Optional#isPresent()" before accessing the value.(òÂÁQ
Q java:S125"<This block of commented-out lines of code should be removed.(݉¦
S java:S1065"9Replace this use of System.out or System.err by a logger.(š—“¿ÿÿÿÿÿ
N java:S106<"9Replace this use of System.out or System.err by a logger.(„íí
S java:S106A"9Replace this use of System.out or System.err by a logger.(š—“¿ÿÿÿÿÿ
l
java:S2159F"VRemove this call to "equals"; comparisons between unrelated types always return false.(ûÖˆ¦
N java:S106G"9Replace this use of System.out or System.err by a logger.(µë
w
java:S4276T"\Refactor this code to use the more specialised Functional Interface 'UnaryOperator<Student>'(“ÿåíûÿÿÿÿ
L
java:S1611T"1Remove the parentheses around the "std" parameter(“ÿåíûÿÿÿÿ
N
java:S1128"8Remove this unused import 'com.java8.features.Employee'.(áÀÀ°
R
java:S1128"=Remove this unused import 'com.java8.features.EmployeeUtils'.(Œ‹Ü
O
java:S1128 "9Remove this unused import 'java.util.function.Predicate'.(ïÍ–¶
\ No newline at end of file
f java:S117 "QRename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(
k java:S117 "QRename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(
N java:S106"9Replace this use of System.out or System.err by a logger.(
N java:S106"9Replace this use of System.out or System.err by a logger.(
S java:S106"9Replace this use of System.out or System.err by a logger.(
N java:S106"9Replace this use of System.out or System.err by a logger.(
9
java:S1128"$Remove this unused import 'java.io'.(D
\ No newline at end of file
Z java:S106"9Replace this use of System.out or System.err by a logger.(80
U java:S106"9Replace this use of System.out or System.err by a logger.(80
Z java:S106"9Replace this use of System.out or System.err by a logger.(80
U java:S106"9Replace this use of System.out or System.err by a logger.(80
\ No newline at end of file
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
]
java:S3959"GRefactor this code so that this consumed stream pipeline is not reused.(Ԑ
Q
java:S1854";Remove this useless assignment to local variable "objects".(Ԑ
S java:S106"9Replace this use of System.out or System.err by a logger.(
B
java:S1481",Remove this unused "objects" local variable.(Ԑ
S
java:S1128"8Remove this unused import 'java.util.stream.Collectors'.(
\ No newline at end of file
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
S java:S106"9Replace this use of System.out or System.err by a logger.(
N java:S106"9Replace this use of System.out or System.err by a logger.(
J
java:S1611"/Remove the parentheses around the "i" parameter(
n
java:S1602"SRemove useless curly braces around statement and then remove useless return keyword(
S java:S106"9Replace this use of System.out or System.err by a logger.(
N java:S106!"9Replace this use of System.out or System.err by a logger.(
\ No newline at end of file
v java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(80
T
java:S3958@"2Refactor the code so this stream pipeline is used.(80
d
java:S1854"GRemove this useless assignment to local variable "employeeComparator4".(80
i
java:S1854"GRemove this useless assignment to local variable "employeeComparator3".(80
d
java:S1854"GRemove this useless assignment to local variable "employeeComparator2".(80
Y
java:S1854"<Remove this useless assignment to local variable "reversed".(80
H
java:S2201"+The return value of "collect" must be used.(Ħ80
J
java:S1481"-Remove this unused "reversed" local variable.(80
U
java:S1481"8Remove this unused "employeeComparator2" local variable.(80
Z
java:S1481"8Remove this unused "employeeComparator3" local variable.(80
U
java:S1481"8Remove this unused "employeeComparator4" local variable.(80
T java:S106"9Replace this use of System.out or System.err by a logger.(Z80
Z java:S106""9Replace this use of System.out or System.err by a logger.(ѭ80
U java:S106%"9Replace this use of System.out or System.err by a logger.(80
T java:S106("9Replace this use of System.out or System.err by a logger.(ڧ#80
H
java:S2201-"+The return value of "collect" must be used.(80
Z java:S1060"9Replace this use of System.out or System.err by a logger.(ʷ80
Z java:S1063"9Replace this use of System.out or System.err by a logger.(80
Z java:S1069"9Replace this use of System.out or System.err by a logger.(80
Z java:S106>"9Replace this use of System.out or System.err by a logger.(80
O
java:S1128"-Remove this unused import 'java.util.Arrays'.(80
Y
java:S1128
"7Remove this unused import 'java.util.stream.Collector'.(ߋ80
\ No newline at end of file
v java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(80
Z java:S106""9Replace this use of System.out or System.err by a logger.(80
Z java:S106&"9Replace this use of System.out or System.err by a logger.(80
Z java:S106+"9Replace this use of System.out or System.err by a logger.(ə80
M
java:S2201/"+The return value of "collect" must be used.(80
W java:S1251"<This block of commented-out lines of code should be removed.(ꦊH80
Y
java:S1128"7Remove this unused import 'java.util.stream.Collector'.(ߋ80
\ No newline at end of file
d
java:S1192"IDefine a constant instead of duplicating this literal "Ravinder" 3 times.(á³Áÿþÿÿÿÿ
t java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(ºËîÜùÿÿÿÿ
o
java:S4276"YRefactor this code to use the more specialised Functional Interface 'IntFunction<String>'(Àݽ‚
E
java:S1611"/Remove the parentheses around the "i" parameter(Àݽ‚
N java:S106"9Replace this use of System.out or System.err by a logger.(ºüÍý
q
java:S4276"VRefactor this code to use the more specialised Functional Interface 'IntUnaryOperator'(çµÈ¦ÿÿÿÿÿ
J
java:S1611"/Remove the parentheses around the "i" parameter(çµÈ¦ÿÿÿÿÿ
S java:S106"9Replace this use of System.out or System.err by a logger.(‹æ…™ùÿÿÿÿ
q
java:S4276"[Refactor this code to use the more specialised Functional Interface 'UnaryOperator<String>'(·ß·ø
p
java:S4276"[Refactor this code to use the more specialised Functional Interface 'UnaryOperator<String>'(”·ó7
v
java:S4276"[Refactor this code to use the more specialised Functional Interface 'UnaryOperator<String>'(ȻЧúÿÿÿÿ
S java:S106"9Replace this use of System.out or System.err by a logger.(á³Áÿþÿÿÿÿ
q
java:S4276"[Refactor this code to use the more specialised Functional Interface 'UnaryOperator<String>'(òÑ–•
N java:S106"9Replace this use of System.out or System.err by a logger.(ªÂÑš
v
java:S4276 "[Refactor this code to use the more specialised Functional Interface 'UnaryOperator<String>'(û‰ù”ýÿÿÿÿ
N java:S106!"9Replace this use of System.out or System.err by a logger.(¬·¯§
L
java:S1611%"6Remove the parentheses around the "employee" parameter(×óû´
i
java:S1602%"SRemove useless curly braces around statement and then remove useless return keyword(×óû´
V
java:S1612("@Replace this lambda with method reference 'System.out::println'.(ÝܼÎ
N java:S106("9Replace this use of System.out or System.err by a logger.(ÝܼÎ
J
java:S1611+"4Remove the parentheses around the "salary" parameter(ÐåŸ
i
java:S1602+"SRemove useless curly braces around statement and then remove useless return keyword(ÐåŸ
R
java:S1612+"<Replace this lambda with method reference 'BigDecimal::new'.(ÐåŸ
<
java:S2111,"!Use "BigDecimal.valueOf" instead.(î §ùÿÿÿÿ
S java:S106."9Replace this use of System.out or System.err by a logger.(Íø‹Šüÿÿÿÿ
x
java:S42760"]Refactor this code to use the more specialised Functional Interface 'UnaryOperator<Employee>'(ëó¯úÿÿÿÿ
Q
java:S16110"6Remove the parentheses around the "employee" parameter(ëó¯úÿÿÿÿ
E
java:S16115"/Remove the parentheses around the "e" parameter(€­«…
V
java:S16125"@Replace this lambda with method reference 'System.out::println'.(€­«…
N java:S1065"9Replace this use of System.out or System.err by a logger.(€­«…
p
java:S42769"[Refactor this code to use the more specialised Functional Interface 'UnaryOperator<String>'(£öóa
D
java:S16119"/Remove the parentheses around the "s" parameter(£öóa
q
java:S4276:"[Refactor this code to use the more specialised Functional Interface 'UnaryOperator<String>'(“تƒ
V
java:S1612:"@Replace this lambda with method reference 'String::toUpperCase'.(“تƒ
N java:S106;"9Replace this use of System.out or System.err by a logger.(€¬åò
S java:S106>"9Replace this use of System.out or System.err by a logger.(éõÄúÿÿÿÿ
\ No newline at end of file
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
N java:S106"9Replace this use of System.out or System.err by a logger.(
S java:S106"9Replace this use of System.out or System.err by a logger.(ڢ
J
java:S1128"4Remove this unused import 'java.util.stream.Stream'.(
\ No newline at end of file
o java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
q
java:S4276"[Refactor this code to use the more specialised Functional Interface 'UnaryOperator<String>'(Ғ
E
java:S1611"/Remove the parentheses around the "s" parameter(Ғ
V
java:S1612"@Replace this lambda with method reference 'String::toUpperCase'.(Ғ
q
java:S4276"[Refactor this code to use the more specialised Functional Interface 'UnaryOperator<String>'(
E
java:S1611"/Remove the parentheses around the "s" parameter(
[
java:S1612"@Replace this lambda with method reference 'System.out::println'.(Ÿ
S java:S106"9Replace this use of System.out or System.err by a logger.(Ÿ
V
java:S1612"@Replace this lambda with method reference 'System.out::println'.(
N java:S106"9Replace this use of System.out or System.err by a logger.(
[
java:S1612"@Replace this lambda with method reference 'System.out::println'.(Ǎ
S java:S106"9Replace this use of System.out or System.err by a logger.(Ǎ
[
java:S1612 "@Replace this lambda with method reference 'System.out::println'.(ԁ
S java:S106 "9Replace this use of System.out or System.err by a logger.(ԁ
F
java:S1128"0Remove this unused import 'java.util.ArrayList'.(
\ No newline at end of file
Y
)src/com/java8/features/EmployeeUtils.java,6\1\612ec60c3557429a6265430e8a6ca79e94151323
Y
)src/com/java8/features/practice/Test.java,0\c\0c266f7b9ebf11fa61923f62c4d557c2ec456df1
]
-src/com/java8/features/foreach/forEachEx.java,a\5\a5191472ae51d588f9fe18f04c0fc363409cad08
g
7src/com/java8/features/LamdaExpressions/SupplierEx.java,7\8\78ab4cd39330473a2552a03e1c38bd0c5236874d
q
Asrc/com/java8/features/LamdaExpressions/Function/FunctionEx1.java,f\1\f18bd193c2a1bbc0ee4f776805047c5953dfc07b
r
Bsrc/com/java8/features/LamdaExpressions/Function/BiFunctionEx.java,2\1\21b80283bc996cebfd3ae33e948907afe626bff2
o
?src/com/java8/features/LamdaExpressions/predicate/Example1.java,2\5\25b60393e7a04f12a7b4a2372904e2925021990a
t
Dsrc/com/java8/features/LamdaExpressions/predicate/BipredicateEx.java,3\c\3c518f41106cfadc48b6d2bedb42370e0f2c7bb6
q
Asrc/com/java8/features/LamdaExpressions/consumer/ConsumerEx1.java,4\6\46b22baab0141a99912aec832a75b4fad8779faa
w
Gsrc/com/java8/features/LamdaExpressions/UnaryOperator/BinaryOperEx.java,9\6\96ad86da270c5a2d347396f29ecafa0aba5c9811
z
Jsrc/com/java8/features/LamdaExpressions/UnaryOperator/UnaryOperatorEx.java,0\9\0986944ea6909963e94d78d7f48523204dc95a0d
_
/src/com/java8/features/Optional/OptionalEx.java,c\7\c7d0f9b4b56ae8f7b115c59867b7f088a54a3ba6
^
.src/com/java8/features/Optional/Optional2.java,d\c\dce39d7a6c477851266bd9e122d093c15416c01d
Z
*src/com/java8/features/Joiner/Joining.java,9\9\99f6a0657bb2862832545b4fc353a50209e2c3af
x
Hsrc/com/java8/features/FunctionalInterfaces/Collectors/CollectorsEx.java,e\6\e63180e7427bd0002d52f190e48336bfa6a57e54
y
Isrc/com/java8/features/FunctionalInterfaces/Collectors/CollectorsEx1.java,8\6\86fb7fbf8e5974e94fc9dc05974516a88d5a36fc
s
Csrc/com/java8/features/FunctionalInterfaces/streams/AnyMatchEx.java,7\b\7b4f8295878ba30136472a53db19ce7f51ebd9d0
u
Esrc/com/java8/features/FunctionalInterfaces/streams/ComparatorEx.java,e\d\ed6be9a2b83fd0e89ddf99b2b994249d6d721c18
v
Fsrc/com/java8/features/FunctionalInterfaces/streams/ComparatorEx2.java,c\f\cf038dda77d1c682720f32d4a304e0f7ddaaa99c
o
?src/com/java8/features/FunctionalInterfaces/streams/Filter.java,8\3\83574343c9305970a6b4a9762239693980cc9cf6
m
=src/com/java8/features/FunctionalInterfaces/streams/Find.java,f\1\f19a5bd2f4a7c52191ea0554beb3648c565a1fa5
r
Bsrc/com/java8/features/FunctionalInterfaces/streams/FlatMapEx.java,0\a\0a3d66ede614ceb8af9b1f23007ab859dc649ccf
n
>src/com/java8/features/FunctionalInterfaces/streams/MapEx.java,f\8\f8943dfe823d899df1f87ed31b2f8c610576ec93
r
Bsrc/com/java8/features/FunctionalInterfaces/streams/MaxAndMin.java,6\2\62d96ca5512f1d27fce331459756c6db2462ee23
n
>src/com/java8/features/FunctionalInterfaces/streams/Merge.java,e\f\efb93e5ee065b70a18e8a3fd6a6a84dc54789db4
m
=src/com/java8/features/FunctionalInterfaces/streams/Peek.java,4\e\4e0b40b82d9aecc6cec8cac98eec4270d65b1289
q
Asrc/com/java8/features/FunctionalInterfaces/streams/ReduceEx.java,7\e\7ebefa157b4964ef6791408592867d45c82e33e5
u
Esrc/com/java8/features/FunctionalInterfaces/streams/SkipAndLimit.java,0\3\032dc785d643246859605b6e83c564d887334fa7
q
Asrc/com/java8/features/FunctionalInterfaces/streams/SortedEx.java,0\7\072f8f0d1d00afd952a580b6501c114103bd28f1
r
Bsrc/com/java8/features/FunctionalInterfaces/streams/SortedEx2.java,3\e\3e34e674927bc72cb714ea76b033df77ecb9442e
r
Bsrc/com/java8/features/FunctionalInterfaces/streams/SortedEx3.java,a\6\a643d4dafddb944add6329f54cb3917737e4cd3b
w
Gsrc/com/java8/features/FunctionalInterfaces/streams/StreamCreation.java,d\8\d854eba82f15932b0adae7bb236c70de7439e712
p
@src/com/java8/features/FunctionalInterfaces/streams/ToArray.java,e\1\e18bff0e700a82c6f268fb5b850d5da4f5cce221
\
,src/com/java8/features/groupBy/Employee.java,7\0\70974f7ce66751aaa6f31f08a5170803c297cb0c
]
-src/com/java8/features/strings/Palindrom.java,c\0\c0633a7668bfbc06b875642bb2a5d67d8fc9fb19
\
,src/com/java8/features/strings/Solution.java,2\9\294195f2d58223dace8020f78bd28a0d610fbf18
`
0src/com/java8/features/strings/AngramString.java,b\c\bc304561b1182b62caee748a045ed5973d478751
\
,src/com/java8/features/strings/Example1.java,1\f\1f564eba41fee02a0e8d3dd83f911a26a3f9c547
^
.src/com/java8/features/strings/ExcelSheet.java,8\1\81118fc19a2685c99459825e14d7745a654d699c
_
/src/com/java8/features/strings/SplitString.java,b\b\bb3260572fd3c63a5b97c1c28b51b8e3e5c545ec
[
+src/com/java8/features/strings/String1.java,d\e\de4778ecba8f780abe9f6d332abc381c6747585f
[
+src/com/java8/features/strings/String2.java,b\b\bb5c13449c139e7820b9bc002919c527011464df
`
0src/com/java8/features/practice/SortHashMap.java,e\1\e143ac7c0c6bfa094891382cb3a527d76ea13708
c
3src/com/java8/features/practice/OtherQuestions.java,a\9\a9a92d616273bd6247664470bd6d7d0d782c0e96
`
0src/com/java8/features/practice/SingletonEx.java,3\3\3361b75904040103eeafbcd4df732821b06a9153
]
-src/com/java8/features/groupBy/GroupByEx.java,c\b\cb58172ef1c0b75906b2729490f1cfab681b261a
d
4src/com/java8/features/practice/EmployeeExample.java,0\a\0aeaa5504796555da4e847cac565694a2ff01717
\ No newline at end of file
Y
)src/com/java8/features/EmployeeUtils.java,6\1\612ec60c3557429a6265430e8a6ca79e94151323
Y
)src/com/java8/features/practice/Test.java,0\c\0c266f7b9ebf11fa61923f62c4d557c2ec456df1
]
-src/com/java8/features/foreach/forEachEx.java,a\5\a5191472ae51d588f9fe18f04c0fc363409cad08
g
7src/com/java8/features/LamdaExpressions/SupplierEx.java,7\8\78ab4cd39330473a2552a03e1c38bd0c5236874d
q
Asrc/com/java8/features/LamdaExpressions/Function/FunctionEx1.java,f\1\f18bd193c2a1bbc0ee4f776805047c5953dfc07b
r
Bsrc/com/java8/features/LamdaExpressions/Function/BiFunctionEx.java,2\1\21b80283bc996cebfd3ae33e948907afe626bff2
o
?src/com/java8/features/LamdaExpressions/predicate/Example1.java,2\5\25b60393e7a04f12a7b4a2372904e2925021990a
t
Dsrc/com/java8/features/LamdaExpressions/predicate/BipredicateEx.java,3\c\3c518f41106cfadc48b6d2bedb42370e0f2c7bb6
z
Jsrc/com/java8/features/LamdaExpressions/UnaryOperator/UnaryOperatorEx.java,0\9\0986944ea6909963e94d78d7f48523204dc95a0d
q
Asrc/com/java8/features/LamdaExpressions/consumer/ConsumerEx1.java,4\6\46b22baab0141a99912aec832a75b4fad8779faa
w
Gsrc/com/java8/features/LamdaExpressions/UnaryOperator/BinaryOperEx.java,9\6\96ad86da270c5a2d347396f29ecafa0aba5c9811
^
.src/com/java8/features/Optional/Optional2.java,d\c\dce39d7a6c477851266bd9e122d093c15416c01d
_
/src/com/java8/features/Optional/OptionalEx.java,c\7\c7d0f9b4b56ae8f7b115c59867b7f088a54a3ba6
Z
*src/com/java8/features/Joiner/Joining.java,9\9\99f6a0657bb2862832545b4fc353a50209e2c3af
x
Hsrc/com/java8/features/FunctionalInterfaces/Collectors/CollectorsEx.java,e\6\e63180e7427bd0002d52f190e48336bfa6a57e54
y
Isrc/com/java8/features/FunctionalInterfaces/Collectors/CollectorsEx1.java,8\6\86fb7fbf8e5974e94fc9dc05974516a88d5a36fc
s
Csrc/com/java8/features/FunctionalInterfaces/streams/AnyMatchEx.java,7\b\7b4f8295878ba30136472a53db19ce7f51ebd9d0
v
Fsrc/com/java8/features/FunctionalInterfaces/streams/ComparatorEx2.java,c\f\cf038dda77d1c682720f32d4a304e0f7ddaaa99c
u
Esrc/com/java8/features/FunctionalInterfaces/streams/ComparatorEx.java,e\d\ed6be9a2b83fd0e89ddf99b2b994249d6d721c18
o
?src/com/java8/features/FunctionalInterfaces/streams/Filter.java,8\3\83574343c9305970a6b4a9762239693980cc9cf6
m
=src/com/java8/features/FunctionalInterfaces/streams/Find.java,f\1\f19a5bd2f4a7c52191ea0554beb3648c565a1fa5
r
Bsrc/com/java8/features/FunctionalInterfaces/streams/FlatMapEx.java,0\a\0a3d66ede614ceb8af9b1f23007ab859dc649ccf
n
>src/com/java8/features/FunctionalInterfaces/streams/MapEx.java,f\8\f8943dfe823d899df1f87ed31b2f8c610576ec93
r
Bsrc/com/java8/features/FunctionalInterfaces/streams/MaxAndMin.java,6\2\62d96ca5512f1d27fce331459756c6db2462ee23
n
>src/com/java8/features/FunctionalInterfaces/streams/Merge.java,e\f\efb93e5ee065b70a18e8a3fd6a6a84dc54789db4
m
=src/com/java8/features/FunctionalInterfaces/streams/Peek.java,4\e\4e0b40b82d9aecc6cec8cac98eec4270d65b1289
q
Asrc/com/java8/features/FunctionalInterfaces/streams/ReduceEx.java,7\e\7ebefa157b4964ef6791408592867d45c82e33e5
u
Esrc/com/java8/features/FunctionalInterfaces/streams/SkipAndLimit.java,0\3\032dc785d643246859605b6e83c564d887334fa7
q
Asrc/com/java8/features/FunctionalInterfaces/streams/SortedEx.java,0\7\072f8f0d1d00afd952a580b6501c114103bd28f1
r
Bsrc/com/java8/features/FunctionalInterfaces/streams/SortedEx2.java,3\e\3e34e674927bc72cb714ea76b033df77ecb9442e
r
Bsrc/com/java8/features/FunctionalInterfaces/streams/SortedEx3.java,a\6\a643d4dafddb944add6329f54cb3917737e4cd3b
w
Gsrc/com/java8/features/FunctionalInterfaces/streams/StreamCreation.java,d\8\d854eba82f15932b0adae7bb236c70de7439e712
p
@src/com/java8/features/FunctionalInterfaces/streams/ToArray.java,e\1\e18bff0e700a82c6f268fb5b850d5da4f5cce221
\
,src/com/java8/features/groupBy/Employee.java,7\0\70974f7ce66751aaa6f31f08a5170803c297cb0c
]
-src/com/java8/features/strings/Palindrom.java,c\0\c0633a7668bfbc06b875642bb2a5d67d8fc9fb19
\
,src/com/java8/features/strings/Solution.java,2\9\294195f2d58223dace8020f78bd28a0d610fbf18
`
0src/com/java8/features/strings/AngramString.java,b\c\bc304561b1182b62caee748a045ed5973d478751
\
,src/com/java8/features/strings/Example1.java,1\f\1f564eba41fee02a0e8d3dd83f911a26a3f9c547
^
.src/com/java8/features/strings/ExcelSheet.java,8\1\81118fc19a2685c99459825e14d7745a654d699c
_
/src/com/java8/features/strings/SplitString.java,b\b\bb3260572fd3c63a5b97c1c28b51b8e3e5c545ec
[
+src/com/java8/features/strings/String1.java,d\e\de4778ecba8f780abe9f6d332abc381c6747585f
[
+src/com/java8/features/strings/String2.java,b\b\bb5c13449c139e7820b9bc002919c527011464df
d
4src/com/java8/features/practice/EmployeeExample.java,0\a\0aeaa5504796555da4e847cac565694a2ff01717
`
0src/com/java8/features/practice/SortHashMap.java,e\1\e143ac7c0c6bfa094891382cb3a527d76ea13708
c
3src/com/java8/features/practice/OtherQuestions.java,a\9\a9a92d616273bd6247664470bd6d7d0d782c0e96
`
0src/com/java8/features/practice/SingletonEx.java,3\3\3361b75904040103eeafbcd4df732821b06a9153
]
-src/com/java8/features/groupBy/GroupByEx.java,c\b\cb58172ef1c0b75906b2729490f1cfab681b261a
\ No newline at end of file
This diff is collapsed.
......@@ -20,13 +20,14 @@ public class EmployeeUtils {
public static List<Employee> fetchEmployee1() {
List<Employee> empList = new ArrayList<>();
empList.add(new Employee(3434, "Raghu", "developer", 10001.00, "BA"));
empList.add(new Employee(123, "ashoke", "manager", 10001.00, "DEV"));
empList.add(new Employee(424, "bharat", "lead", 10002.00, "QA"));
empList.add(new Employee(621, "chandu", "director", 10005.00, "BA"));
empList.add(new Employee(93, "danish", "developer", 10006.00, "DEV"));
empList.add(new Employee(448, "eenadu", "developer", 10001.00, "BA"));
empList.add(new Employee(432, "Ayaan", "developer", 10001.00, "BA"));
empList.add(new Employee(3434, "Raghu", "developer", 70000.00, "BA"));
empList.add(new Employee(123, "ashoke", "manager", 1000.00, "DEV"));
empList.add(new Employee(424, "bharat", "lead", 20000.00, "QA"));
empList.add(new Employee(621, "chandu", "director", 100000.00, "BA"));
empList.add(new Employee(93, "danish", "developer", 500000.00, "DEV"));
empList.add(new Employee(448, "eenadu", "developer", 2000.00, "BA"));
empList.add(new Employee(432, "Ayaan", "developer", 300000.00, "BA"));
empList.add(new Employee(426, "Bhargav", "Enginnerr", 2000000.00, "QA"));
return empList;
}
......
......@@ -8,6 +8,7 @@ import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.stream.Collector;
import java.util.stream.Collectors;
public class ComparatorEx {
......@@ -15,6 +16,8 @@ public class ComparatorEx {
List<Employee> employeeList = EmployeeUtils.fetchEmployee();
employeeList.stream().sorted(Comparator.comparing(Employee::getFirstName,Comparator.nullsFirst(Comparator.reverseOrder()))).collect(Collectors.toList());
Comparator<Employee> employeeComparator = Comparator.comparing(Employee::getFirstName);
Comparator<Employee> reversed = employeeComparator.reversed();
Comparator<Employee> employeeComparator1 = Comparator.comparingInt(Employee::getId);
......@@ -36,6 +39,11 @@ public class ComparatorEx {
//Sort By LastName and Id
employeeList.stream().sorted(employeeComparator5).forEach(System.out::println);
employeeList.stream()
.sorted(Comparator.comparing(Employee::getSalary)
.thenComparing(Employee::getFirstName,Comparator.nullsFirst(Comparator.reverseOrder())))
.collect(Collectors.toList());
//Sort By ID and Salary
employeeList.stream().sorted(employeeComparator6).forEach(System.out::println);
......@@ -52,6 +60,8 @@ public class ComparatorEx {
employeeList.stream()
.sorted(Comparator.comparing(Employee::getFirstName, Comparator.nullsLast(Comparator.reverseOrder())))
.forEach(System.out::println);
employeeList.stream().sorted(Comparator.comparing(Employee::getFirstName, Comparator.nullsLast(Comparator.reverseOrder())));
}
}
package com.java8.features.FunctionalInterfaces.streams;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.stream.Collector;
import java.util.stream.Collectors;
import java.util.stream.Stream;
public class Merge {
public static void main(String[] args) {
//Map-1
HashMap<String, Integer> subjectToStudentCountMap1 = new HashMap<>();
subjectToStudentCountMap1.put("Maths", 45);
subjectToStudentCountMap1.put("Physics", 57);
subjectToStudentCountMap1.put("Chemistry", 52);
subjectToStudentCountMap1.put("History", 41);
//Map-2
HashMap<String, Integer> subjectToStudentCountMap2 = new HashMap<>();
subjectToStudentCountMap2.put("Economics", 49);
subjectToStudentCountMap2.put("Maths", 42);
subjectToStudentCountMap2.put("Biology", 41);
subjectToStudentCountMap2.put("History", 55);
HashMap<String, Integer> subjectToStudentCountMap3 = new HashMap<>(subjectToStudentCountMap1);
subjectToStudentCountMap2.forEach((key, value) -> subjectToStudentCountMap3.merge(key, value, (v1, v2) -> v1 + v2));
System.out.println(subjectToStudentCountMap3);
HashMap<String, Integer> collect = Stream.of(subjectToStudentCountMap1, subjectToStudentCountMap2)
.flatMap(entry -> entry.entrySet().stream()).collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, Integer::sum, HashMap::new));
System.out.println(collect);
LinkedHashMap<String, Integer> collect1 = collect.entrySet().stream()
.sorted(Map.Entry.comparingByKey())
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, (e1, e2) -> e1, LinkedHashMap::new));
System.out.println(collect1);
collect.entrySet().stream().
sorted(Map.Entry.comparingByKey())
.collect(Collectors.toMap(Map.Entry::getKey,Map.Entry::getValue,(e1,e2)->e1,LinkedHashMap::new));
/* LinkedHashMap<String, Integer> collect2 = collect.entrySet().stream().sorted(Map.Entry.comparingByValue().reversed()).collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, (e1, e2) -> e1, LinkedHashMap::new));
*/
}
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment