Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

Exists method for check if Any object is empty#230

Open
mmaryo wants to merge 1 commit intojson-iterator:masterjson-iterator/java:masterfrom
monbanquet:add-method-to-check-if-existsCopy head branch name to clipboard
Open

Exists method for check if Any object is empty#230
mmaryo wants to merge 1 commit intojson-iterator:masterjson-iterator/java:masterfrom
monbanquet:add-method-to-check-if-existsCopy head branch name to clipboard

Conversation

@mmaryo
Copy link

@mmaryo mmaryo commented Mar 28, 2019

Add method to check if a field exists

Before :

            Any rowField = atFields.get(mappingField.getAirtableFieldName());
            boolean exists = true;
            try {rowField.mustBeValid();}catch(Exception e){exists = false;}
            if (exists) {
                
            }

Now :

            Any rowField = atFields.get(mappingField.getAirtableFieldName());
            if (rowField.exists()) {
                
            }

@codecov-io
Copy link

Codecov Report

Merging #230 into master will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #230      +/-   ##
==========================================
- Coverage   68.46%   68.45%   -0.01%     
==========================================
  Files         107      107              
  Lines        7335     7336       +1     
  Branches     1388     1389       +1     
==========================================
  Hits         5022     5022              
- Misses       1867     1868       +1     
  Partials      446      446
Impacted Files Coverage Δ
src/main/java/com/jsoniter/any/Any.java 59.13% <0%> (-0.52%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e48a7a1...9b9e94c. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.