Skip to content

Commit a4abdcf

Browse files
committed
Cosmetic
1 parent 7f8568c commit a4abdcf

File tree

2 files changed

+1
-22
lines changed

2 files changed

+1
-22
lines changed

MPChartLib/src/main/java/com/github/mikephil/charting/data/LineRadarDataSet.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11

22
package com.github.mikephil.charting.data;
33

4-
import android.annotation.TargetApi;
54
import android.graphics.Color;
65
import android.graphics.drawable.Drawable;
76

87
import com.github.mikephil.charting.interfaces.datasets.ILineRadarDataSet;
9-
import com.github.mikephil.charting.utils.Utils;
108
import com.github.mikephil.charting.utils.UtilsKtKt;
119

1210
import java.util.List;
@@ -57,8 +55,6 @@ public int getFillColor() {
5755
/**
5856
* Sets the color that is used for filling the area below the line.
5957
* Resets an eventually set "fillDrawable".
60-
*
61-
* @param color
6258
*/
6359
public void setFillColor(int color) {
6460
mFillColor = color;
@@ -72,10 +68,7 @@ public Drawable getFillDrawable() {
7268

7369
/**
7470
* Sets the drawable to be used to fill the area below the line.
75-
*
76-
* @param drawable
7771
*/
78-
@TargetApi(18)
7972
public void setFillDrawable(Drawable drawable) {
8073
this.mFillDrawable = drawable;
8174
}
@@ -88,8 +81,6 @@ public int getFillAlpha() {
8881
/**
8982
* sets the alpha value (transparency) that is used for filling the line
9083
* surface (0-255), default: 85
91-
*
92-
* @param alpha
9384
*/
9485
public void setFillAlpha(int alpha) {
9586
mFillAlpha = alpha;
@@ -98,8 +89,6 @@ public void setFillAlpha(int alpha) {
9889
/**
9990
* set the line width of the chart (min = 0.2f, max = 10f); default 1f NOTE:
10091
* thinner line == better performance, thicker line == worse performance
101-
*
102-
* @param width
10392
*/
10493
public void setLineWidth(float width) {
10594

MPChartLib/src/main/java/com/github/mikephil/charting/data/ScatterDataSet.java

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public ScatterDataSet(List<Entry> yVals, String label) {
4747

4848
@Override
4949
public DataSet<Entry> copy() {
50-
List<Entry> entries = new ArrayList<Entry>();
50+
List<Entry> entries = new ArrayList<>();
5151
for (int i = 0; i < mEntries.size(); i++) {
5252
entries.add(mEntries.get(i).copy());
5353
}
@@ -67,8 +67,6 @@ protected void copy(ScatterDataSet scatterDataSet) {
6767
/**
6868
* Sets the size in density pixels the drawn scattershape will have. This
6969
* only applies for non custom shapes.
70-
*
71-
* @param size
7270
*/
7371
public void setScatterShapeSize(float size) {
7472
mShapeSize = size;
@@ -82,8 +80,6 @@ public float getScatterShapeSize() {
8280
/**
8381
* Sets the ScatterShape this DataSet should be drawn with. This will search for an available IShapeRenderer and set this
8482
* renderer for the DataSet.
85-
*
86-
* @param shape
8783
*/
8884
public void setScatterShape(ScatterChart.ScatterShape shape) {
8985
mShapeRenderer = getRendererForShape(shape);
@@ -92,8 +88,6 @@ public void setScatterShape(ScatterChart.ScatterShape shape) {
9288
/**
9389
* Sets a new IShapeRenderer responsible for drawing this DataSet.
9490
* This can also be used to set a custom IShapeRenderer aside from the default ones.
95-
*
96-
* @param shapeRenderer
9791
*/
9892
public void setShapeRenderer(IShapeRenderer shapeRenderer) {
9993
mShapeRenderer = shapeRenderer;
@@ -107,8 +101,6 @@ public IShapeRenderer getShapeRenderer() {
107101
/**
108102
* Sets the radius of the hole in the shape (applies to Square, Circle and Triangle)
109103
* Set this to <= 0 to remove holes.
110-
*
111-
* @param holeRadius
112104
*/
113105
public void setScatterShapeHoleRadius(float holeRadius) {
114106
mScatterShapeHoleRadius = holeRadius;
@@ -121,8 +113,6 @@ public float getScatterShapeHoleRadius() {
121113

122114
/**
123115
* Sets the color for the hole in the shape.
124-
*
125-
* @param holeColor
126116
*/
127117
public void setScatterShapeHoleColor(int holeColor) {
128118
mScatterShapeHoleColor = holeColor;

0 commit comments

Comments
 (0)