• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

smartsheet / smartsheet-java-sdk / #43

24 Aug 2023 10:26PM UTC coverage: 50.427% (-0.02%) from 50.442%
#43

push

github-actions

web-flow
Fix Checkstyle violations in api/models Classes (#57)

This will fix ~900 violations

189 of 189 new or added lines in 59 files covered. (100.0%)

3423 of 6788 relevant lines covered (50.43%)

0.5 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

83.33
/src/main/java/com/smartsheet/api/models/format/FontFamily.java
1
package com.smartsheet.api.models.format;
2

3
/*
4
 * #[license]
5
 * Smartsheet SDK for Java
6
 * %%
7
 * Copyright (C) 2023 Smartsheet
8
 * %%
9
 * Licensed under the Apache License, Version 2.0 (the "License");
10
 * you may not use this file except in compliance with the License.
11
 * You may obtain a copy of the License at
12
 *
13
 *      http://www.apache.org/licenses/LICENSE-2.0
14
 *
15
 * Unless required by applicable law or agreed to in writing, software
16
 * distributed under the License is distributed on an "AS IS" BASIS,
17
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
 * See the License for the specific language governing permissions and
19
 * limitations under the License.
20
 * %[license]
21
 */
22

23
import java.util.HashSet;
24
import java.util.List;
25
import java.util.Set;
26

27
/**
28
 * An enumeration representing the available font families within Smartsheet.
29
 */
30
public enum FontFamily {
1✔
31
    ARIAL("Arial", List.of("sans-serif")),
1✔
32
    TAHOMA("Tahoma", List.of("sans-serif")),
1✔
33
    TIMES_NEW_ROMAN("Times New Roman", List.of("serif")),
1✔
34
    VERDANA("Verdana", List.of("sans-serif")),
1✔
35
    ;
36
    private final String fontName;
37
    private final Set<String> traits;
38

39
    /**
40
     * The default setting when the {@link Format} for {@link FontFamily} is null;
41
     */
42
    public static final FontFamily DEFAULT = ARIAL;
1✔
43

44
    FontFamily(String name, List<String> traits) {
1✔
45
        this.fontName = name;
1✔
46
        this.traits = new HashSet<>(traits);
1✔
47
    }
1✔
48

49
    /**
50
     * @return the fontName
51
     */
52
    public String getFontName() {
53
        return fontName;
×
54
    }
55

56
    /**
57
     * @return the traits
58
     */
59
    public Set<String> getTraits() {
60
        return traits;
×
61
    }
62
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc