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

link-intersystems / lis-commons / #272

05 Nov 2023 03:51PM UTC coverage: 89.819% (-0.2%) from 90.032%
#272

push

web-flow
Merge 44d2fac16 into f38ee4625

48 of 72 new or added lines in 10 files covered. (66.67%)

1 existing line in 1 file now uncovered.

7684 of 8555 relevant lines covered (89.82%)

0.9 hits per line

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

60.0
/lis-commons-beans-records/src/main/java/com/link_intersystems/beans/record/RecordBeansFactory.java
1
package com.link_intersystems.beans.record;
2

3
import com.link_intersystems.beans.BeanClass;
4
import com.link_intersystems.beans.BeanClassException;
5
import com.link_intersystems.beans.BeansFactory;
6

7
import java.beans.IntrospectionException;
8

9
public class RecordBeansFactory extends BeansFactory {
1✔
10
    @Override
11
    public String getTypeName() {
12
        return "record";
1✔
13
    }
14

15
    @Override
16
    public <T> BeanClass<T> createBeanClass(Class<T> beanClass, Class<?> stopClass) throws BeanClassException {
17
        /**
18
         * Ignoring stopClass, because records can not create an inheritance hierarchy.
19
         * See Java 17 JLS 8.10 https://docs.oracle.com/javase/specs/jls/se17/html/jls-8.html#jls-8.10
20
         */
21
        try {
22
            return new RecordBeanClass<>(beanClass);
1✔
NEW
23
        } catch (IntrospectionException e) {
×
NEW
24
            throw new BeanClassException("Unable to create record bean class", e);
×
25
        }
26
    }
27
}
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

© 2025 Coveralls, Inc