()
| 61 | } |
| 62 | |
| 63 | public boolean isValid() { |
| 64 | return !host.isEmpty() |
| 65 | && port > 0 && port <= 0xffff |
| 66 | && !user.isEmpty() |
| 67 | && !password.isEmpty() |
| 68 | && !project.isEmpty() |
| 69 | && !versionA.isEmpty() |
| 70 | && !versionB.isEmpty(); |
| 71 | } |
| 72 | |
| 73 | void save(Preferences prefs) { |
| 74 | if (!isValid()) return; |
no outgoing calls
no test coverage detected