FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
codeql/java/ql/src/Metrics/RefTypes/TSpecialisationIndex.java at main · github/codeql · GitHub
github
codeql
Repository navigation
Code
Issues
1k
(1k)
Pull requests
474
(474)
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
codeql
/
java
/
ql
/
src
/
Metrics
/
RefTypes
/
TSpecialisationIndex.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
40 lines (32 loc) · 802 Bytes
Breadcrumbs
codeql
/
java
/
ql
/
src
/
Metrics
/
RefTypes
/
TSpecialisationIndex.java
Copy path
File metadata and controls
40 lines (32 loc) · 802 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
abstract
class
Animal
{
protected
String
animalName
;
public
Animal
(
String
name
) {
animalName
=
name
;
}
public
String
getName
(){
return
animalName
;
}
public
abstract
String
getKind
();
}
class
Dog
extends
Animal
{
public
Dog
(
String
name
) {
super
(
name
);
}
public
String
getName
() {
// This method duplicates the method in class 'Cat'.
return
animalName
+
" the "
+
getKind
();
}
public
String
getKind
() {
return
"dog"
;
}
}
class
Cat
extends
Animal
{
public
Cat
(
String
name
) {
super
(
name
);
}
public
String
getName
() {
// This method duplicates the method in class 'Dog'.
return
animalName
+
" the "
+
getKind
();
}
public
String
getKind
() {
return
"cat"
;
}
}
Back
|
FazBrowse Home
|
New Git URL