Questions tagged [lcom]
10 questions
21
votes
1 answer
Why Does Lack of Cohesion Of Methods (LCOM) Include Getters and Setters
I am looking at the LCOM metric as shown here,
http://www.ndepend.com/Metrics.aspx
So we are saying a few things,
1) A class is utterly cohesive if all its methods use all its instance fields
2) Both static and instance methods are counted, it…

peter
- 13,009
- 22
- 82
- 142
9
votes
1 answer
LCOM4 interrogation about way to calculate
Recently, I encountered a sementic issue in the way of calculating the LCOM4, a metric used to find how the methods and the properties of a class are cohersive.
Introduction
LCOM4 is "the 4th method of calculating the Lack in Cohesion Of Methods",…

niconoe
- 1,191
- 1
- 11
- 25
6
votes
2 answers
How to get LCOM(Lack of Cohesion of Methods) metric in SonarQube 4.2?
Is LCOM metric available with SonarQube 4.2 version ?
I need this metric to be added in my report, but i don't see its available.
Please let me know is there any specific jar to be added to get this metric. This metric was available in Sonar 3.7
Any…

Srikanth Sridhar
- 2,317
- 7
- 30
- 50
1
vote
1 answer
LCOM is always 1 in JArchitect and Metrics Reloaded
So, I've been studying design patterns and in the context of the Single Responsibility Principle I tried to calculate the Lack of Cohesion of methods (LCOM) in Java using Metrics Reloaded and JArchitect. Both programs always calculate LCOM to be 1…

StyleM
- 138
- 1
- 5
1
vote
1 answer
CPPdepend LCOM metric query
I was trying to get LCOM metric report using CppDepend. I wrote the following query
// TODO short description
from t in Application.Types
select new {t,t.LCOM, t.LCOMHS}
But this query gives table value for only header files in the…

Nayan Mehta
- 31
- 4
1
vote
1 answer
Determining the LCOM4 (Lack of Cohesion in Methods) by parsing the Java Bytecode using BCEL
I have built a program, which takes in a provided ".class" file and parses it using the BCEL, but I'm a bit lost when it comes to using the resulting object to determine the LCOM4 value. I've scoured the whole web, trying to find a proper tutorial…

Shehanka Fernando
- 55
- 3
1
vote
1 answer
Multiple dex files define Lcom/nineoldandroids/animation/Animator$AnimatorListener
There are multiple questions that address this problem.. but none have worked for me..
I am using two libraries Jazzy view pager and mpAndroidChartLibrary
The jazzyViewPager is a library project wheras androidChartLibrary is a jar File
I am…

Alvin
- 416
- 1
- 8
- 18
1
vote
1 answer
How can LCOM be a rational number?
I've been busy with LCOM and the plugin Metrics in eclipse. In which I have to calculate manually the Lack of Cohesion of a class and compare it with the result of Metrics. But this plugin returns a LCOM of 1/3. How can LCOM be a rational…
user3168579
1
vote
0 answers
Google Cloud Messaging Chat Application--unable to resolve super class
I am newer to Android but have located an excellent source for creating a multi-user chat app. The tutorial is here: http://www.appsrox.com/android/tutorials/instachat/1/
Or fork a users repository here:
https://github.com/erikswed/InstaChatX
The…

Sauron
- 6,399
- 14
- 71
- 136
-1
votes
1 answer
How to fix unable to execute dex multiple dex files define lcom google android vending licensing?
My project was working fine before added com.google.android.vending.licensing package.
I also added all the libaray as required.but i am getting the above issue
unable to execute dex multiple dex files define lcom google android vending…

Jagdish
- 2,418
- 4
- 25
- 51