Skip to content

Commit 2935dc2

Browse files
committed
style: replacing CRLF on java files
1 parent 0d6b715 commit 2935dc2

File tree

11 files changed

+1864
-1864
lines changed

11 files changed

+1864
-1864
lines changed
Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
1-
/**
2-
* Licensed to EsupPortail under one or more contributor license
3-
* agreements. See the NOTICE file distributed with this work for
4-
* additional information regarding copyright ownership.
5-
*
6-
* EsupPortail licenses this file to you under the Apache License,
7-
* Version 2.0 (the "License"); you may not use this file except in
8-
* compliance with the License. You may obtain a copy of the License at:
9-
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
11-
*
12-
* Unless required by applicable law or agreed to in writing, software
13-
* distributed under the License is distributed on an "AS IS" BASIS,
14-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15-
* See the License for the specific language governing permissions and
16-
* limitations under the License.
17-
*/
18-
package org.esupportail.portlet.filemanager.beans;
19-
20-
import java.util.List;
21-
22-
import org.apache.commons.logging.Log;
23-
import org.apache.commons.logging.LogFactory;
24-
import org.springframework.context.annotation.Scope;
25-
import org.springframework.stereotype.Service;
26-
27-
@Service("basketSession")
28-
@Scope("session")
29-
public class BasketSession {
30-
31-
protected static final Log log = LogFactory.getLog(BasketSession.class);
32-
33-
private List<String> dirsToCopy;
34-
35-
private String goal;
36-
37-
public List<String> getDirsToCopy() {
38-
return dirsToCopy;
39-
}
40-
41-
public void setDirsToCopy(List<String> dirsToCopy) {
42-
this.dirsToCopy = dirsToCopy;
43-
}
44-
45-
public String getGoal() {
46-
return goal;
47-
}
48-
49-
public void setGoal(String goal) {
50-
this.goal = goal;
51-
}
52-
53-
}
1+
/**
2+
* Licensed to EsupPortail under one or more contributor license
3+
* agreements. See the NOTICE file distributed with this work for
4+
* additional information regarding copyright ownership.
5+
*
6+
* EsupPortail licenses this file to you under the Apache License,
7+
* Version 2.0 (the "License"); you may not use this file except in
8+
* compliance with the License. You may obtain a copy of the License at:
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
package org.esupportail.portlet.filemanager.beans;
19+
20+
import java.util.List;
21+
22+
import org.apache.commons.logging.Log;
23+
import org.apache.commons.logging.LogFactory;
24+
import org.springframework.context.annotation.Scope;
25+
import org.springframework.stereotype.Service;
26+
27+
@Service("basketSession")
28+
@Scope("session")
29+
public class BasketSession {
30+
31+
protected static final Log log = LogFactory.getLog(BasketSession.class);
32+
33+
private List<String> dirsToCopy;
34+
35+
private String goal;
36+
37+
public List<String> getDirsToCopy() {
38+
return dirsToCopy;
39+
}
40+
41+
public void setDirsToCopy(List<String> dirsToCopy) {
42+
this.dirsToCopy = dirsToCopy;
43+
}
44+
45+
public String getGoal() {
46+
return goal;
47+
}
48+
49+
public void setGoal(String goal) {
50+
this.goal = goal;
51+
}
52+
53+
}
Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,50 @@
1-
package org.esupportail.portlet.filemanager.beans;
2-
3-
import org.esupportail.portlet.filemanager.utils.SizeUtils;
4-
5-
public class Quota {
6-
7-
private long usedBytes;
8-
private long maxBytes;
9-
10-
public Quota(long usedBytes, long maxBytes) {
11-
this.usedBytes = usedBytes;
12-
this.maxBytes = maxBytes;
13-
}
14-
15-
/**
16-
* @return the usedBytes
17-
*/
18-
public long getUsedBytes() {
19-
return usedBytes;
20-
}
21-
22-
23-
/**
24-
* @return the maxBytes
25-
*/
26-
public long getMaxBytes() {
27-
return maxBytes;
28-
}
29-
30-
public float getUsage() {
31-
return (float)( usedBytes*100l / maxBytes );
32-
}
33-
34-
public float getUsedSize() {
35-
return SizeUtils.getSize(usedBytes);
36-
}
37-
38-
public float getMaxSize() {
39-
return SizeUtils.getSize(maxBytes);
40-
}
41-
42-
public String getUsedUnit() {
43-
return SizeUtils.getUnit(usedBytes);
44-
}
45-
46-
public String getMaxUnit() {
47-
return SizeUtils.getUnit(maxBytes);
48-
49-
}
50-
}
1+
package org.esupportail.portlet.filemanager.beans;
2+
3+
import org.esupportail.portlet.filemanager.utils.SizeUtils;
4+
5+
public class Quota {
6+
7+
private long usedBytes;
8+
private long maxBytes;
9+
10+
public Quota(long usedBytes, long maxBytes) {
11+
this.usedBytes = usedBytes;
12+
this.maxBytes = maxBytes;
13+
}
14+
15+
/**
16+
* @return the usedBytes
17+
*/
18+
public long getUsedBytes() {
19+
return usedBytes;
20+
}
21+
22+
23+
/**
24+
* @return the maxBytes
25+
*/
26+
public long getMaxBytes() {
27+
return maxBytes;
28+
}
29+
30+
public float getUsage() {
31+
return (float)( usedBytes*100l / maxBytes );
32+
}
33+
34+
public float getUsedSize() {
35+
return SizeUtils.getSize(usedBytes);
36+
}
37+
38+
public float getMaxSize() {
39+
return SizeUtils.getSize(maxBytes);
40+
}
41+
42+
public String getUsedUnit() {
43+
return SizeUtils.getUnit(usedBytes);
44+
}
45+
46+
public String getMaxUnit() {
47+
return SizeUtils.getUnit(maxBytes);
48+
49+
}
50+
}

0 commit comments

Comments
 (0)