Skip to content

Commit cff37f5

Browse files
committed
Deprecate implementations which are due to me moved to tmc-core
1 parent c53e3ce commit cff37f5

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

tmc-plugin/src/fi/helsinki/cs/tmc/model/ServerAccess.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,23 @@
3535
import java.util.List;
3636
import java.util.Map;
3737
import java.util.zip.GZIPOutputStream;
38-
import org.openide.modules.Modules;
3938

4039
/**
4140
* A frontend for the server.
41+
*
42+
* @deprecated Users are suggested to rely on the tmc-core instead of this implementation.
4243
*/
44+
@Deprecated
4345
public class ServerAccess {
4446
public static final int API_VERSION = 7;
45-
47+
4648
private NbTmcSettings settings;
4749
private CourseListParser courseListParser;
4850
private CourseInfoParser courseInfoParser;
4951
private ReviewListParser reviewListParser;
5052
private String clientVersion;
5153
private TmcCore tmcCore;
52-
54+
5355
public ServerAccess() {
5456
this(NbTmcSettings.getDefault());
5557
}

tmc-plugin/src/fi/helsinki/cs/tmc/model/TmcProjectInfo.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public TmcProjectFile getTmcProjectFile() {
5959
}
6060

6161
//TODO: a more robust/elegant/extensible project type recognition system
62+
@Deprecated
6263
public TmcProjectType getProjectType() {
6364
String pd = getProjectDirAbsPath();
6465
if (new File(pd + File.separatorChar + "pom.xml").exists()) {
@@ -70,6 +71,7 @@ public TmcProjectType getProjectType() {
7071
}
7172
}
7273

74+
@Deprecated
7375
public RecursiveZipper.ZippingDecider getZippingDecider() {
7476
if (getProjectType() == TmcProjectType.JAVA_MAVEN) {
7577
return new MavenZippingDecider(this);
@@ -92,6 +94,7 @@ public int hashCode() {
9294
return project.hashCode();
9395
}
9496

97+
@Deprecated
9598
private abstract static class AbstractZippingDecider implements RecursiveZipper.ZippingDecider {
9699

97100
protected TmcProjectInfo projectInfo;
@@ -137,6 +140,7 @@ public boolean shouldZip(String zipPath) {
137140
}
138141
}
139142

143+
@Deprecated
140144
private static class DefaultZippingDecider extends AbstractZippingDecider {
141145

142146
public DefaultZippingDecider(TmcProjectInfo projectInfo) {
@@ -149,6 +153,7 @@ protected boolean isProbablySourceFile(String zipPath) {
149153
}
150154
}
151155

156+
@Deprecated
152157
private static class MavenZippingDecider extends AbstractZippingDecider {
153158

154159
private static final Pattern rejectPattern = Pattern.compile("^[^/]+/(target|lib/testrunner)/.*");

0 commit comments

Comments
 (0)